Hello
We have a declarative pipeline where each step executes several
tests in sequence, each one producing a cppunit report. This works
out fine except that failed tests can't be distinguished.
Jenkins (pseudo code):
stage('Parallel Execution') {
parallel {
stage('stage1') {
steps {
script {
DoTest(...) // e.g. Debug, Release, other compilers etc
DoTest(...)
DoTest(...)
}
}
}
stage('stage2') {
steps {
script {
DoTest(...)
DoTest(...)
DoTest(...)
}
}
}
If now a test fails in the DoTest routine the report looks like this:
Test Result (3 failures / -1)
Parallel Execution / stage1 / FailedTest
Parallel Execution / stage1 / FailedTest
Parallel Execution / stage1 / FailedTest
This makes it hard to find out which call really failed, especially if the
test only failed once and not each time. I've seen that xUnit has
'checksName', but that is only used for SCM, apparently not internally.
Is there a way to give xUnit a custom name, similar to checksName,
to be used for the results instead of the default stage name? My goal
would be something like (or any other way):
Parallel Execution / stage1-call1 / FailedTest
Parallel Execution / stage1-call2 / FailedTest
Parallel Execution / stage1-call3 / FailedTest
Thanks
bye Fabi
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/eb6cf0c16db695c7bada1b303ad0dd2a%40indel.ch.