mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-16 21:10:57 +08:00
22 lines
1.2 KiB
Markdown
22 lines
1.2 KiB
Markdown
Tests in PCAPdroid can be split in the following categories:
|
|
|
|
- [Java tests](https://github.com/emanuele-f/PCAPdroid/tree/dev/app/src/test/java):
|
|
they can be run via `./gradlew test`. They use the
|
|
[robolectric framework](https://github.com/robolectric/robolectric)
|
|
to mock the Android API, allowing them to be run locally (without an Android device).
|
|
|
|
- [Native tests](https://github.com/emanuele-f/PCAPdroid/tree/dev/app/src/main/jni/tests):
|
|
tests and fuzzing targets for native code. Check out their readme for more details.
|
|
|
|
The tests are executed on every push via the
|
|
[Github workflows](https://github.com/emanuele-f/PCAPdroid/tree/dev/.github/workflows).
|
|
|
|
Apart from automatic tests, the following manual tests should be performed
|
|
before every release:
|
|
|
|
- Test on devices matching the `minSdkVersion` (currently Android SDK 21)
|
|
- Test on devices matching the `targetSdkVersion` (currently Android SDK 31)
|
|
- Rotate the device, put activity in background, clear from recent activities
|
|
- Java memory consumption tests via the [Memory Profiler](https://developer.android.com/studio/profile/memory-profiler)
|
|
- Manual malware detection test against `internetbadguys.com` and `0.0.0.1`
|