-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skipped tests reported as passing #614
Comments
Thanks for reporting! I think we should show is as ignored, although I am not sure if that was the initial intention. You can also ignore a test based on a TAG and that shows up correctly. We have some examples in scalameta/metals repository around here https://github.com/scalameta/metals/blob/main/tests/cross/src/main/scala/tests/BasePCSuite.scala#L159 |
Thanks for the help! I couldn't quite figure out how to set a tag dynamically, is that possible? If the test gets skipped is something that is determined after the fixture
I'm not quite sure how to get the tags to be set after I've already entered Thank you! |
Maybe, you could just use test transforms, but not sure if it will be possible to mark anything as ignored there. The best option for you is probably what you tried before https://scalameta.org/munit/docs/filtering.html#ignore-entire-test-suite but you will lose the information about it being ignored. |
Ok, I will do some refactoring, thanks for the help! |
Hello, I'm using
assume
to skip tests dynamically based on what's described in the documentation here: https://scalameta.org/munit/docs/filtering.html#ignore-single-test-case-based-on-a-dynamic-conditions, however the tests that fail the assertion are reported as passing (even though nothing is run). I'm not sure if I've misunderstood the documentation, from reading through some issues it looks like sometimes the final test report includes a "skipped" and sometimes not. I would like it to report as "n tests skipped", or at least ignore them completely but not report them as passing. I use the IntelliJ test API but it also happens when running with sbt.The test itself is here but if I simply run
assume(false)
in eithertest(...)
or inbeforeEach
, it doesn't run the test but reports it as passed.If I manually use
test("description".ignore)
then it is reported as skipped, both on IntelliJ and SBT.The text was updated successfully, but these errors were encountered: