bat-test icon indicating copy to clipboard operation
bat-test copied to clipboard

:test-matcher affects cloverage report

Open mishadoff opened this issue 6 years ago • 0 comments

As per documentation we can use :test-matcher key to affect the test namespaces. If I use it for example to exclude some test (like #"(?!(app.render.test)).*"), and run lein bat-test cloverage, the test succesfully excluded, BUT cloverage instrument only this excluded namespace app.render.test and ignores all other namespaces.

As you can see in coverage report only one test ns present, though i have more than 10 namespaces

Ran 103 tests in 56.909 seconds
567 assertions, 0 failures, 0 errors.
Writing HTML report to: /Users/misha/app/target/coverage/index.html

|------------------------+---------+---------|
|              Namespace | % Forms | % Lines |
|------------------------+---------+---------|
|  app.render.test       |   10.71 |   28.13 |
|------------------------+---------+---------|
|              ALL FILES |   10.71 |   28.13 |

mishadoff avatar Oct 24 '18 10:10 mishadoff