Skip to content

Run instrumented tests with pull requests#2792

Open
Luna712 wants to merge 4 commits into
recloudstream:masterfrom
Luna712:run-tests
Open

Run instrumented tests with pull requests#2792
Luna712 wants to merge 4 commits into
recloudstream:masterfrom
Luna712:run-tests

Conversation

@Luna712

@Luna712 Luna712 commented May 15, 2026

Copy link
Copy Markdown
Contributor

I was originally going to do this in #2791 when adding the test for that but decided it would be better as a separate PR.

Comment thread app/src/androidTest/java/com/lagradost/cloudstream3/ExampleInstrumentedTest.kt Outdated
name: pull-request-build
path: "app/build/outputs/apk/prerelease/debug/*.apk"

instrumented-tests:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks to be heavy CPU/time-wise, but the tests are still extremely valuable in some specific cases (like all of your recent pull requests). Would it be possible to limit these tests to manual-run/tagged/reviewed or something else to prevent running these tests for every single commit in every single pull request? It would simply be a waste otherwise.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently running the other serializer tests in the emulator fails also, so I need to do some more work to fix that now. I will do so later on. This isn't fully urgent in the meantime, but I will get it done in the next day or two.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2902 fixed the test failure here also btw.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fire-light42 also the reason I made instrumentation tests a separate task is to allow ignoring it and not delay actual archive build. I figured it might also be useful like for the layout binding tests for now also, and other things. If you want though I can change its trigger though yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants