Skip to content

Commit 521665c

Browse files
committed
update(rspec docs): make more actionable "Run a subset of tests" by adding links to env vars
1 parent fe0900d commit 521665c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docusaurus/docs/ruby/rspec.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ bundle exec rake "knapsack_pro:queue:rspec[--fail-fast 3]"
4545

4646
To run a subset of your test suite you have a couple of options:
4747

48-
- `KNAPSACK_PRO_TEST_FILE_*` [environment variables](reference.md) (recommended)
49-
- RSpec's `--tag MY_TAG`, `--tag ~MY_TAG`, `--tag type:feature`, or `--tag ~type:feature`
48+
- `KNAPSACK_PRO_TEST_FILE_*` environment variables (recommended):
49+
- [`KNAPSACK_PRO_TEST_FILE_PATTERN`](reference.md#knapsack_pro_test_file_pattern)
50+
- [`KNAPSACK_PRO_TEST_FILE_EXCLUDE_PATTERN`](reference.md#knapsack_pro_test_file_exclude_pattern)
51+
- [`KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE`](reference.md#knapsack_pro_test_file_list_source_file)
52+
- [`KNAPSACK_PRO_TEST_FILE_LIST`](reference.md#knapsack_pro_test_file_list)
53+
- RSpec's `--tag MY_TAG`, `--tag ~MY_TAG`, `--tag type:feature`, or `--tag ~type:feature`. See how to [pass command-line arguments](reference.md#command-line-arguments) here.
5054

5155
If you are seeking faster performance on your CI, you may want to read [Parallelize test examples (instead of files)](#parallelize-test-examples-instead-of-files)
5256

0 commit comments

Comments
 (0)