question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No way to "skip" a test stating a reason

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
danumacommented, Jul 28, 2016

This will help , especially if we are sharing the results with wide audience . Thank you Chris.

0reactions
knoctecommented, Jul 31, 2016

Awesome thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found