ndtp / android-testify

Add screenshots to your Android tests
Other
99 stars 5 forks source link

ScreenshotIsDifferentException: The path should not include an empty segment #195

Open DanielJette opened 6 months ago

DanielJette commented 6 months ago

Describe the bug

Testify version 2.0.0

This issue relates to:

To Reproduce

When a test fails, the following output is shown:

There was 1 failure:
1) default(com.foo.about.AboutScreenshotTest)
dev.testify.core.exception.ScreenshotIsDifferentException: 

*  The captured screenshot is different from the baseline screenshot.
*  Run `./gradlew app::screenshotPull` to view the differences.
*  Run `./gradlew app::screenshotTest -PtestClass=com.foo.about.AboutScreenshotTest#default` to run this test again.

Running the command ./gradlew app::screenshotPull yields this error:

* What went wrong:
Cannot locate tasks that match 'app::screenshotTest'. The path should not include an empty segment (try 'app:screenshotTest' instead).

Expected behavior

The error message should only use a single : to delineate the module name