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

Setup patrol integration tests #2196

Merged
merged 10 commits into from
Jan 13, 2025
26 changes: 26 additions & 0 deletions docs/adr/0025-add-patrol-integration-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 25. Add patrol integration tests

Date: 2024-12-24

## Status

**Accepted**

## Context

- The need for integration tests to handle real scenarios
- The need to handle interactions with native views in tests such as notification popups or webviews
- Mocking matrix's behaviour using mockito causes a lot of unexpected issues

hoangdat marked this conversation as resolved.
Show resolved Hide resolved
## Decision

- Add integration tests using Patrol

## Consequences

- Setup patrol locally:
- Run `dart pub global activate patrol_cli` to enable Patrol CLI
- Run tests locally:
- to run tests we use `patrol test -t path/to/test --dart-define=arg1='value' `
- to run tests in dev mode this will enable hot restarting the tests we use : `patrol test -t path/to/test --dart-define=arg1='value' `
arguments are passed for each test using `dart-define` as shown above
Loading