mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-05-08 21:12:26 +00:00
1.3 KiB
1.3 KiB
Tests in PCAPdroid can be split in the following categories:
-
Java tests: they can be run via
./gradlew test. They use the robolectric framework to mock the Android API, allowing them to be run locally (without an Android device). -
Native tests: they can be run with
./run_tests.shon a linux host. They are built with the AddressSanitizer to detect memory issues and leaks.
The tests are executed on every push via the 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
- Manual malware detection test against
internetbadguys.comand0.0.0.1