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

Possible to continue even if some tests fail? #150

Open
seanleblanc opened this issue Feb 6, 2018 · 1 comment
Open

Possible to continue even if some tests fail? #150

seanleblanc opened this issue Feb 6, 2018 · 1 comment

Comments

@seanleblanc
Copy link

Although I think the coverage.xml is created, the build tends to exit with an error if some tests fail, causing Jenkins to not publish the report. Is there any way around this? It's odd, because the Cobertura Publish plugin in my job is not set up to fail under these conditions, I don't think (expanded the Advanced options).

@stevesaliman
Copy link
Owner

Is the Cobertura Publish plugin a Gradle plugin or a Jenkins one?

If it is a Gradle plugin, then the problem is most likely that Gradle is failing the build as soon as a task fails. I set up the cobertura task to finalize test tasks so that it will always run, but other tasks in the build will fail.

If it is a Jenkins plugin, my guess is that the step that runs the publish is not running when prior steps fail, though I am not too familiar with Jenkins.

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

No branches or pull requests

2 participants