Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"play auto-test" can return a exit code zero when the tests don't run #1437

Closed
tstedman opened this issue Dec 28, 2022 · 2 comments
Closed
Labels
Milestone

Comments

@tstedman
Copy link

"play auto-test" can return an exit code of zero when the tests do not run due to the application failing to start. This can occur as a result of an unhandled exception when initializing a module or a compiler error within the application.

The impact is that a configuration error can cause "ant test" to report BUILD SUCCESS, even when the tests do not run. This can be seen when running manually, and is also observed when run within the context of Jenkins or other automated build tools. With respect to Jenkins, this leads Jenkins to report that everything is fine (i.e. sunny) even where the underlying project tests did not successfully run.

Two commons ways to reproduce the problem:

  1. Add a syntax error to one of the app's java files.
  2. Configure an application to use a database that doesn't exist.
@ihostage
Copy link
Member

@mkurz would you transfer this issue to Play1 repo, please 😉

@mkurz mkurz transferred this issue from playframework/.github Jan 4, 2023
@xael-fry xael-fry added this to the 1.8.0 milestone Jul 15, 2023
@xael-fry
Copy link
Member

Merged in master with #1435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants