Skip to content

Documentation for console-launcher seem to miss exit code -1 #5051

@laeubi

Description

@laeubi

I go to https://docs.junit.org/current/user-guide/#running-tests-console-launcher and it says:

The ConsoleLauncher exits with a status code of 1 if any containers or tests failed. If no tests are discovered and the --fail-if-no-tests command-line option is supplied, the ConsoleLauncher exits with a status code of 2. Otherwise, the exit code is 0.

But I found that in case no test-engine is found -1 is returned (or maybe in other cases as well?).

It would be good to know other exits codes as well as I'm currently work on integrate the launcher with another application and want to give good error messages if something fails.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions