Kore icon indicating copy to clipboard operation
Kore copied to clipboard

build: FullDebugUnitTest fails

Open not-a-user opened this issue 9 years ago • 5 comments

gradle build fails with

    [...]
    :app:processFullDebugUnitTestJavaRes UP-TO-DATE
    :app:compileFullDebugUnitTestSources
    :app:mockableAndroidJar UP-TO-DATE
    :app:assembleFullDebugUnitTest
    :app:testFullDebugUnitTest

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryArtistsSongWithArtistWithoutAlbumTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsSongWithMultipleArtistsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryAlbumSongsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryArtistSongsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsSongWithAlbumWithoutArtistTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryMultidiscAlbumSongsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsSongWithArtistWithoutAlbumTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryThirdArtistSongWithMultipleArtistsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > querySecondArtistSongWithMultipleArtistsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryFirstArtistSongWithMultipleArtistsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsSongWithAlbumAndArtistTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumsForArtistTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumsForArtistWithVariousArtistsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumWithMultipleArtists FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumWithoutArtist FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAllAlbumsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.GenresTest > queryAllGenresTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.GenresTest > queryAlbumsForGenreTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.ArtistsTest > queryAllArtistsTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    org.xbmc.kore.provider.mediaprovider.ArtistsTest > queryArtistTest FAILED
        org.apache.tools.ant.BuildException
            Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException

    23 tests completed, 22 failed, 1 skipped
    :app:testFullDebugUnitTest FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:testFullDebugUnitTest'.
    > There were failing tests. See the report at: file:///~/git/Kore/app/build/reports/tests/fullDebug/index.html

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 4 mins 2.121 secs

The release apk works fine though. I'm on Ubuntu 16.04 with latest AndroidStudio, SDK and support libraries installed.

not-a-user avatar Jan 16 '17 13:01 not-a-user

The error you're getting should not occur. The :app:testFullDebugUnitTest should run fine. Try running a clean before running testFullDebugUnitTest.

Note that running build does not work because we use different flavors to make sure test files and permissions do not get included into release builds as well. The build task will run testFullReleaseUnitTest which will run the local tests without the required assets. These assets are included in the testFullDebugUnitTest task.

poisdeux avatar Jan 16 '17 21:01 poisdeux

Still the same after git pull followed by git reset --hard followed by git clean -dfx followed by ANDROID_HOME=~/Android/Sdk/ /opt/android-studio/gradle/gradle-2.14.1/bin/gradle testFullDebugUnitTest. Still, the assembleRelease target works fine.

not-a-user avatar Jan 24 '17 12:01 not-a-user

So it's still failing at testFullDebugUnitTest? Strange, I just ran the build on a clean clone on the master branch and it succeeds at testFullDebugUnitTest and fails at testFullReleaseUnitTest, as it should.

I think you have a problem with loading the dependencies from maven. Try running gradlew -d to see which deps fail to download.

poisdeux avatar Jan 24 '17 12:01 poisdeux

Did you manage to get this fixed?

poisdeux avatar Feb 20 '17 08:02 poisdeux

Closing this. Please reopen if the problem persists and you can provide more details.

poisdeux avatar Mar 09 '17 11:03 poisdeux