Files
PCAPdroid/docs/testing.md
T
Emanuele Faranda 472b7f4a18 Update testing.md
2022-01-20 20:09:32 +01:00

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.sh on 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.com and 0.0.0.1