Finding one polluting test among thousands of options

Sometimes, a test can leave the environment changed in a way that causes other tests to fail. This is known as “test pollution”. Finding a polluting test can be particularly annoying, because every test passes on its own; it’s only when the tests are run in some order, with the unknown polluting test before a known polluted test, that a failure occurs. There’s a tool that will track down a polluting test: detect-test-pollution....

August 26, 2024 · 2 min