android-testify icon indicating copy to clipboard operation
android-testify copied to clipboard

ScreenshotIsDifferentException: The path should not include an empty segment

Open DanielJette opened this issue 2 years ago • 0 comments

Describe the bug

Testify version 2.0.0

This issue relates to:

  • [x] The Kotlin library
  • [x] The Gradle plugin
  • [ ] The IntelliJ Platform plugin
  • [ ] The sample code
  • [ ] The documentation

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

DanielJette avatar Dec 21 '23 18:12 DanielJette