facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

How to run plugin tests (plugin:check) #316

Open oradkovsky opened 1 year ago

oradkovsky commented 1 year ago

Hello! I'm unable to run groovy tests for :plugin. The following ./gradlew plugin:check is getting me failure on all 3 tests


com.facebook.testing.screenshot.build.ScreenshotsPluginTest > Ensure tasks added FAILED
    org.gradle.api.internal.plugins.PluginApplicationException at ScreenshotsPluginTest.groovy:43
        Caused by: org.gradle.api.plugins.PluginInstantiationException at ScreenshotsPluginTest.groovy:43
            Caused by: org.gradle.internal.service.ServiceCreationException at ScreenshotsPluginTest.groovy:43

com.facebook.testing.screenshot.build.ScreenshotsPluginTest > Ensure core dependency added FAILED
    org.gradle.api.internal.plugins.PluginApplicationException at ScreenshotsPluginTest.groovy:43
        Caused by: org.gradle.api.plugins.PluginInstantiationException at ScreenshotsPluginTest.groovy:43
            Caused by: org.gradle.internal.service.ServiceCreationException at ScreenshotsPluginTest.groovy:43

com.facebook.testing.screenshot.build.ScreenshotsPluginTest > Ensure core dependency not added when requested FAILED
    org.gradle.api.internal.plugins.PluginApplicationException at ScreenshotsPluginTest.groovy:43
        Caused by: org.gradle.api.plugins.PluginInstantiationException at ScreenshotsPluginTest.groovy:43
            Caused by: org.gradle.internal.service.ServiceCreationException at ScreenshotsPluginTest.groovy:43

3 tests completed, 3 failed

I feel like I'm doing something wrong - please advise how to make them pass and what am I missing. Thanks!