You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is hard for new developers to discover to how to write such tests
code duplicate for same work
But with, JenkinsRule, we can use LoggerRule and RuleChain (example), which is very easy.
This issue propose to implement utility class/methods to work with RealJenkinsRule, to easily create log recorder, support level, number of log lines, log message retrieval method, assertion methods.
What feature do you want to see added?
Currently there is no easy apis to record logs and assert them in
RealJenkinsRule
, as how it exists inJenkinsRule
.There some PRs where log based assertions are done by setting up log recorders,
jenkinsci/jenkins#9331, jenkinsci/google-compute-engine-plugin#503
Two problems are,
But with,
JenkinsRule
, we can useLoggerRule
andRuleChain
(example), which is very easy.This issue propose to implement utility class/methods to work with
RealJenkinsRule
, to easily create log recorder, support level, number of log lines, log message retrieval method, assertion methods.Note: check jenkinsci/google-compute-engine-plugin#503 (comment)
Upstream changes
No response
Are you interested in contributing this feature?
yep, will try 😄
The text was updated successfully, but these errors were encountered: