Skip to content

Add an option to skip running tests if no test files are found#82

Open
dennisl wants to merge 1 commit intojenkinsci:masterfrom
mdh-se:master
Open

Add an option to skip running tests if no test files are found#82
dennisl wants to merge 1 commit intojenkinsci:masterfrom
mdh-se:master

Conversation

@dennisl
Copy link
Copy Markdown

@dennisl dennisl commented Oct 30, 2023

A new job configuration checkbox called "Skip if no tests" has been added. It defaults to unchecked to preserve the previous current behavior. If this checkbox is checked the build will result in success if no test files are found. Without this patch a project without test files would result in an unstable build.

Testing done

We have tried building projects with and without test files, both with and without the new configuration, to make sure that the default behavior is preserved. Testing was done with configuration in the UI for a normal Jenkins job and using a pipeline job. We did not added automated tests.

https://issues.jenkins.io/browse/JENKINS-72247

### Submitter checklist
- [ ] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [X] Ensure that the pull request title represents the desired changelog entry
- [X] Please describe what you did
- [X] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [X] Ensure you have provided tests - that demonstrates feature works or fixes the issue

… job configuration checkbox called "Skip if no tests" has been added. It defaults to unchecked to preserve the previous current behavior. If this checkbox is checked the build will result in success if no test files are found. Without this patch a project without test files would result in an unstable build.
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

Successfully merging this pull request may close these issues.

1 participant