Hello Team,
I am in progress version 11.7 AIX.
I wanted to implement ABLUnit Testing as part of jenkins build and we are not using ANT script for Jenkins build. I was able to call the ABLUnit through a script (-p ABLUnitCore.p -param "CFG=./ablunit.json") and generated the results.xml. Everything looks good so far.
Now, how will my build process display the result.xml and possibly fail the process when testcase fails?
Thanks in Advance,
Anand
Maybe you can tell us what you're using instead of Ant to build everything. cmd, bash?
We are currently using plain shell script for our build process.
We are currently using plain shell script for our build process.
Wrap your shell script in a (groovy) jenkinsfile. (See samples on the internet how to start a shell script from a Jenkinsfile)
Then afterwards you can do something like this:
stage('Unit Tests JUnit results collection') {
steps {
dir('.') {
junit keepLongStdio: true, testResults: 'Tests/*.xml'
}
}
}