selenium-jupiter - Unable to find screenshot file

89 Views Asked by At

When I tried to run the below command with JUnit 5

mvn clean install -DskipTests && mvn clean test -pl=test-insight -Dtest="com.myproject.automation.test.settings.**" -Dspring.profiles.active="live" -Dsel.jup.screenshot.at.the.end.of.tests=whenfailure -Dsel.jup.screenshot.format=png -Dsel.jup.output.folder=target/screenshot

After that, I couldn't see the screenshot is created. Does anyone help me with my problem? Thank you

1

There are 1 best solutions below

2
Laura Hannah Vachon On

I believe you need to enable surfire-reports.