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
Make it easier for scripts to retrieve passed and skipped test results #24
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1ad7afc
Convert passed and skipped tests to function similarly to failed test…
aroskuski 1043b87
fix NPE in freeze()
aroskuski c71181e
handle the case where skippedTests==null
aroskuski 4909096
Added getPassedTests() and getSkippedTests() to AbstractTestResultAct…
aroskuski bb163c0
Fix compile errors
aroskuski bb40373
Remove unnecessary comment
aroskuski 9b5e096
Added annotation and Javadoc as requested
aroskuski 0fcfa6a
Only generate lists of passed and skipped tests on-demand
aroskuski e0b30b0
Added proper import for @NotNull
aroskuski 518825e
Added missing semicolons
aroskuski c19eeaa
Probably use correct @Nonnull this time
aroskuski 8d34063
Made getPassedTests() and getSkippedTests() synchronized
aroskuski File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ | |
import java.util.Map; | ||
import java.util.Set; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
import javax.annotation.Nonnull; | ||
import jenkins.model.RunAction2; | ||
import jenkins.model.lazy.LazyBuildMixIn; | ||
import org.jfree.chart.ChartFactory; | ||
|
@@ -256,6 +257,28 @@ public List<? extends TestResult> getFailedTests() { | |
return Collections.emptyList(); | ||
} | ||
|
||
/** | ||
* A shortcut for scripting | ||
* | ||
* @return List of passed tests from associated test result. | ||
* @since TODO | ||
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add |
||
@Nonnull | ||
public List<? extends TestResult> getPassedTests() { | ||
return Collections.emptyList(); | ||
} | ||
|
||
/** | ||
* A shortcut for scripting | ||
* | ||
* @return List of skipped tests from associated test result. | ||
* @since TODO | ||
*/ | ||
@Nonnull | ||
public List<? extends TestResult> getSkippedTests() { | ||
return Collections.emptyList(); | ||
} | ||
|
||
/** | ||
* Generates a PNG image for the test result trend. | ||
*/ | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change not going to break ABI compatibility for existing callers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an override, so it should be safe