sylph
sylph copied to clipboard
Add option to run tests in profile mode
Currently all tests run in debug mode by default with no option to change it. My main goal using this library and AWS Device farm is collecting profiling reports.
Should be possible to get working (pending no unexpected Device Farm issues). Haven't used profiling programmatically, so there's that. I assume you end-up with some log artifacts to include in the download from Device Farm.
If lucky, just adding the option to build in profile mode should be enough to get it going.
To help with my assumptions, can you describe a little about the workflow in your use case?
If lucky, just adding the option to build in profile mode should be enough to get it going.
This is how I run it locally:
flutter drive --profile --target=test_driver/app.dart
...any place in yaml where I could add this? 😃
When running on device farm you're generally required to upload a signed .ipa or .apk. Found a way to get debug apps packaged as signed .ipa/.apk.
If the same packaging approach works for profile apps, then can move forward. Will have to do some manual testing on device farm to confirm that an app built in profile mode can run profile integration tests.
From there, can integrate into sylph.
Since profiling generates test artifacts, will require implementing #22.
So the profile workflow in sylph should look something like:
- Get profile config from config file Setting profile mode requires setting a flag and artifact dirname in config file
- Build and upload profile .ipa/.apk
- Run the integration tests on device farm The integration tests will gather profiling and write to a directory
- Download profiling artifacts
Does this workflow fit your use case? Any changes?
That's exactly what I'm going for.