No way to "skip" a test stating a reason
See original GitHub issueI’m loving canopy. That being said, I’m not a fan of “magic”. And by magic I refer to these magic operators: https://lefthandedgoat.github.io/canopy/testing.html
To argue my point, let’s take the example of someone wanting to ignore/skip a test for some reason. There’s the &&!
operator, great… but how to attach that reason to the code? In NUnit, you have the Ignore(string)
attribute that accepts a way to encode the reason as a parameter.
If I were NUnit’s author, I would have gone even farther and not provide the parameterless Ignore()
overload. I think canopy should do this as well.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
How to skip an exam for which I'm not prepared much? ...
Cheating or skipping an exam without a valid reason not only goes against academic integrity but can also harm your future prospects. Universities,...
Read more >How to skip the rest of tests in the class if one has failed?
(each Test Class is independent - and that should be enough). UPDATE 2: Putting "if" condition in each test method is not an...
Read more >7 Reasons Not to Skip Tests - TestProject - Test Automation Blog
7 reasons why you should not skip writing tests for your software and a few tips that will lead your product to success....
Read more >Ignoring unit tests - good and bad reasons when and why?
You cannot ignore a failing test. If the test is wrong it must be fixed. Removing tests that seem redundant is a waste...
Read more >Cannot determine how Jest is skipping tests · Issue #4763
When I run Jest in watch mode and hit "a" (to run all tests), Jest still skips 18 test files. I cannot find...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This will help , especially if we are sharing the results with wide audience . Thank you Chris.
Awesome thanks!