How can you always upload the xml test results, ev...
# community-support
p
How can you always upload the xml test results, even after a test failure? Currently I use
upload.dependsOn(testTask)
,
upload.mustRunAfter(testTask)
and
testTask.finalizedBy(upload)
, but even when I call
./gradlew :uploadTask --continue
with
assertTrue(false)
, my uploadTask never runs.
1
Okay, there is
addTestListener
.
v
If
upload
dependsOn
testTask
, it only runs if it was successful, even with
finalizedBy
p
Yeah, that’s why I now use the listener
Or do I just need to remove the dependsOn? Of course I need the generated xml test results file 🤔
v
You could also configure the test task to not fail on failed tests
🤔 1