How to toggle report backup without running karate-junit5 in parallel


I’ve noticed that if I execute parallel tests with junit5 karate would backup reports by default:

//have report backup
    void runParallel() {
        Results results =,"classpath:steps")).tags("@Read")
        assertEquals(0, results.getFailCount(), results.getErrorMessages());

But not the same when running a single test with karate-junit5 interface, even with backupReportDir(true)

// no report backup
    Karate run(){

Is it designed intentional or an issue?

my pom


>Solution :

I honestly don’t remember. I personally don’t consider this a high priority so you are welcome to dive into the code and contribute a PR.

Leave a ReplyCancel reply