Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test-only command to bypass build. #2080

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

scottandrewzip
Copy link

Great utility for CI. Add test-only for when you need to separate build and test steps. Our test step was taking 3 minutes after we would do a build. This was due to the shear size of our project.

@github-actions github-actions bot added the package: patrol_cli Related to the patrol_cli package label Jan 30, 2024
@bartekpacia
Copy link
Contributor

bartekpacia commented Feb 8, 2024

see also #1982 which where I proposed this feature

I suggest renaming from "test only" to "run"

@piotruela
Copy link
Collaborator

Thanks @scottandrewzip for the input.
I checked how it works and looks like the behavior of this command varies between platforms. On Android, the _execute method invokes the ./gradlew connectedAndroidTest task, which rebuilds the test by updating it. On iOS, however, the xcodebuild --test-without-building command is used, which utilizes already built instrumentation so even if we change something in the test code we won't see it.
We need to find a way to solve the disparity by making it work the same way on both platforms

@bartekpacia
Copy link
Contributor

@piotruela To skip building of tests with Gradle and just run tests directly on the device, you can Orchestrator directly through adb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: patrol_cli Related to the patrol_cli package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants