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.

Continue on error/exception

See original GitHub issue

Use case(s)

It is desirable to run all test projects as individual targets and not stop on the first time NonZeroExitCodeException, skipping the remaining test projects.

Description

Using simple-exec to run dotnet test {project} will return a NonZeroException if any test fails.

However I have multiple test projects each run as individual targets. I want to record that they failed but I don’t (necessarily) want bullseye to stop. I would like the fact that the target has failed to be recorded, processing to continue and then build “fails” at the end.

Alternatives

Capture the NonZeroExitCodeException and flip a staic flag oneOrMoreTestsFailed: image

Problem 1 with this: the individual targets say “succeeded” when it is desirable they should say failed!: image

Problem 2: doesn’t work when running specific target test image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
damianhcommented, Mar 5, 2020

Close. I’ll come back to it when the itch needs scratching.

1reaction
damianhcommented, Dec 11, 2019

We’ll chat about this next week xx

Read more comments on GitHub >

github_iconTop Results From Across the Web

Laravel: [ErrorException] "continue" targeting switch is ...
This is a new warning introduced in PHP 7.3. It means you are not allowed to have a continue statement inside of a...
Read more >
on error is used for error and handling or for other activity?
Continue on error option will be available for all Browser activities and other also where interactions are possible.
Read more >
PHP's ErrorException Explained (with Example)
The ErrorException class can be used when an exception needs to be thrown and handled like a regular object inherited from the Exception...
Read more >
Exceptions - Manual
Exceptions can be throw n (or re-thrown) within a catch block. If not, execution will continue after the catch block that was triggered....
Read more >
Modern Error handling in PHP - Netgen
The idea of this blog post is to introduce modern capabilities of PHP exception handling to readers.
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