Skip to content

Commit

Permalink
Merge pull request #150 from buildkite/tet-457-add-a-callout-in-rspec…
Browse files Browse the repository at this point in the history
…-doc-to-ensure-all-tests-name-are

Add callout about uniqueness of rspec tests
  • Loading branch information
nprizal authored Dec 6, 2024
2 parents dc5bf0e + 77563fb commit ef0939b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/test_engine/ruby_collectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ Once you're done, in your Test Engine dashboard, you'll see analytics of test ex
If you don't see branch names, build numbers, or commit hashes in the Test Engine UI, then see [CI environments](/docs/test-engine/ci-environments) to learn more about exporting your environment to the collector.
> 🚧
> Test Engine identifies tests using their descriptions and example group descriptions. To avoid test identity conflicts, ensure all test descriptions are unique. You can enforce uniqueness by using the RuboCop cops [RSpec/RepeatedDescription](https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecrepeateddescription) and [RSpec/RepeatedExampleGroupDescription](https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecrepeatedexamplegroupdescription), where [RuboCop](https://github.com/rubocop/rubocop) is a static code analyzer for Ruby.
### Troubleshooting allow_any_instance_of errors
If you're using RSpec and seeing errors related to `allow_any_instance_of` that look like this:
Expand Down

0 comments on commit ef0939b

Please sign in to comment.