1.6 KiB
1.6 KiB
Testing instructions
Using Maestro E2E tests
- Install Maestro by following these instructions. This will help us run the E2E tests.
- You can write Maestro tests in
__e2e__/maestrodirectory by creating a new.yamlfile or by modifying an existing one. - You can also use Maestro Studio which automatically generates commands by recording your actions on the app. Therefore, you can create realistic tests without having to manually write any code. Use the
maestro studiocommand to start recording your actions.
Using Flashlight for Performance Testing
- Make sure Maestro is installed (optional: only for automated testing) by following the instructions above
- Install Flashlight by following these instructions
- The simplest way to get started is by running
yarn perf:measurewhich will run a live preview of the performance test results. You can see a demo here - The
yarn perf:test:measurewill run thescroll.yamltest located in__e2e__/maestro/scroll.yamland give the results in.perf/results.jsonwhich can be viewed by runningyarn:perf:results - You can also run your own tests by running
yarn perf:test <path_to_test>where<path_to_test>is the path to your test file. For example,yarn perf:test __e2e__/maestro/scroll.yamlwill run thescroll.yamltest located in__e2e__/maestro/scroll.yaml.