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.

Assumption message for Skipped scenario

See original GitHub issue

Hi, pretty new in the Cluecumber field…

I do get a Skipped scenario when using Assumptions and Failed scenario for Assertions, e.g:

Assumptions.assumeTrue(5 == 4, "Nothing available, stopping test");  => Skipped
Assertions.assertEquals(5 == 4, "Nothing available, stopping test");  => Failed

I do however not see the Assumption message for the skipped test which makes it hard to know the reason for Skipping. Since we do not want a failed (red) test in these situations, it would be nice in the UI to quickly see the “assume message” along the Scenario name, as it is now for Assertions.

Perhaps there is another way to display a message for Assumed-skipped tests without having to click on the Scenario link for further details.

/M

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
bischoffdevcommented, Dec 15, 2022

image

Fixed, releasing it now for v3.0.1.

1reaction
OxygeneIVcommented, Dec 15, 2022

Yes, the reporting:

Typical Java code: Assumptions.assumeTrue(5 == 4, "No V75 available, stopping test");

I’d like the Assume message to appear as for Assertions (at arrow position) image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Necessary assumptions | Learn more (article) - Khan Academy
Necessary assumption questions ask you to determine what has to be true—but was never explicitly stated—in order for an argument to work.
Read more >
Disclosure Example: Extraordinary Assumption
In an appraisal assignment, an extraordinary assumption is employed to presume certain unknown information as fact.
Read more >
How To Use The Law of Assumption In 3 Steps
The first step to using the Law of Assumption is to describe the desire you want to manifest. If you have multiple things...
Read more >
Assume vs assert in JUnit tests - java - Stack Overflow
The most easiest difference between Assert and Assume is : Assume will only run when the assumption is true. Will be skipped if...
Read more >
Jumping to Conclusions: When People Decide Based on ...
Casual assumption. Casual assumption involves making a relatively minor, intuitive assumption, that is based on your preexisting knowledge, experience, and ...
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