Giter VIP home page Giter VIP logo

Comments (7)

EnricoMi avatar EnricoMi commented on June 16, 2024 1

No idea, seems unrelated to this action, maybe you should check with https://github.com/reactivecircus/android-emulator-runner.

from publish-unit-test-result-action.

EnricoMi avatar EnricoMi commented on June 16, 2024

Invoking the publish action twice requires individual check_name values, e.g.

  • the build job should use check_name: 'Test Results (build)'
  • the android_tests job should use check_name: 'Test Results (instrumentation)'

Regarding the missing test results: your File listing step shows there are no TEST*.xml files in path .:

find . -name "TEST*.xml"
echo "All files:"
find .

There are no files listed before All files:

All files:
.

Further, there is no test-results directory in ., so test-results/**/*.xml cannot find anything.

from publish-unit-test-result-action.

johnjohndoe avatar johnjohndoe commented on June 16, 2024

I added the check_name option now, see runs/7769998601.

Further, there is no test-results directory in ., so test-results/**/*.xml cannot find anything.

Do you know why the xml files are missing and how I can fix it?

When I run the tests locally on an emulator then the following files are generated:

└── outputs
    └── androidTest-results
        └── connected
            ├── TEST-Pixel_7_API_33(AVD) - 13-_database-.xml
            └── test-result.pb

from publish-unit-test-result-action.

johnjohndoe avatar johnjohndoe commented on June 16, 2024

OK. I just confirmed that instrumentation tests are skipped: runs/7773288979/job/21196786085 :(

If you see no errors in the configuration for this action then you can close this issue. Thank you.

from publish-unit-test-result-action.

johnjohndoe avatar johnjohndoe commented on June 16, 2024

I fixed running the instrumentation tests now (I had to scope the Gradle task to the module) ...

script: ./gradlew :database:connectedAndroidTest

... and I can see an xml file being generated. See runs/7773831930.

./database/build/outputs/androidTest-results/connected/TEST-test(AVD) - 10-_database-.xml

It isn't picked up by the results action, though.

Warning: Could not find any files for androidTest-results/**/*.xml, */androidTest-results/**/*.xml

from publish-unit-test-result-action.

EnricoMi avatar EnricoMi commented on June 16, 2024

Because androidTest-results/**/*.xml and */androidTest-results/**/*.xml cannot match ./database/build/outputs/androidTest-results/connected/TEST-test(AVD) - 10-_database-.xml.

Try **/androidTest-results/**/*.xml instead.

from publish-unit-test-result-action.

johnjohndoe avatar johnjohndoe commented on June 16, 2024

Awesome. It works now.

Screenshot of the connectedAndroidTest results

Thank you!

from publish-unit-test-result-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.