rubocop / rubocop-minitest

Code style checking for Minitest files.
https://docs.rubocop.org/rubocop-minitest
MIT License
144 stars 44 forks source link

Fix flaky testing for `Minitst/MultipleAssertions` #305

Closed koic closed 9 months ago

koic commented 9 months ago

The shared @cop instance variable of AssertOffense module causes flaky tests due to state changes.

The AssertOffense testing module needs to be updated to allow for tests that are independent in configuration between tests. It is necessary to prevent race conditions caused by shared configurations.

This is a workaround to skip tests until the issue is resolved in the AssertOffense module.


Before submitting the PR make sure the following are checked: