Skip to content

Commit

Permalink
Update instructions to work on multiple shells
Browse files Browse the repository at this point in the history
The previous instructions were not compatible with Zsh.
These instructions work with Zsh and bash.
  • Loading branch information
kaylareopelle committed Dec 7, 2022
1 parent 29e749d commit e3171b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ In CI, these unit tests are run against all supported major.minor versions of Ra

### Running Specific Tests

The file parameter can be added to the test:env invocation to run a specific unit file. It can be exact file name, or a wildcard pattern. Multiple file patterns can be specified by separating with a comma with no spaces surrounding:
The file environment variable can be added to the test:env invocation to run a specific unit file. It can be exact file name, or a wildcard pattern. Multiple file patterns can be specified by separating with a comma with no spaces surrounding:

bundle exec rake 'test:env[rails60]' file=test/new_relic/agent/distributed_tracing/* # everything in this folder
bundle exec rake 'test:env[rails60]' file=test/new_relic/agent/tracer_state_test.rb # single file
bundle exec rake 'test:env[rails60]' file=test/new_relic/agent/*_test.rb # all *_test.rb files in this folder
bundle exec rake 'test:env[rails60]' file=test/new_relic/agent/distributed_tracing/*,test/new_relic/agent/datastores/* # all files in two folders
file=test/new_relic/agent/distributed_tracing/* bundle exec rake 'test:env[rails60]' # everything in this folder
file=test/new_relic/agent/tracer_state_test.rb bundle exec rake 'test:env[rails60]' # single file
file=test/new_relic/agent/*_test.rb bundle exec rake 'test:env[rails60]' # all *_test.rb files in this folder
file=test/new_relic/agent/distributed_tracing/*,test/new_relic/agent/datastores/* bundle exec rake 'test:env[rails60]' # all files in two folders

0 comments on commit e3171b4

Please sign in to comment.