I have a Jenkins job that runs Spoon to execute instrumentation tests. One of the tests fails but the this does not cause Jenkins to mark the build as a failure as I would expect.
How would I propagate the test failure to Jenkins?
Here's my build step to launch Spoon:
java -jar $SPOON_RUNNER_JAR_PATH \
--sdk $ANDROID_SDK_DIR \
--apk testPackages/$testedApkName \
--test-apk testPackages/$testApkName
I noticed that Spoon outputs a file
spoon-output/result.json
that could be parsed for individual test failures. Each test has a JSON field that looks likeSo Log Parser Plugin could be used. A parsing rule would need to be created, something like: