tingsu / Stoat

Stoat (STochastic model App Tester) - an automatic testing tool for android apps
https://tingsu.github.io/files/fse17-stoat.pdf
143 stars 37 forks source link

gradle projects for Jacoco #19

Open DMJ1997 opened 2 years ago

DMJ1997 commented 2 years ago

I try ro test jacoco project markor.apk using: ruby run_stoat_testing.rb --app_dir /home/tangsu/ARES_DATA/markor --apk_path /home/tangsu/ARES_DATA/markor/markor.apk --avd_name gtestapi27 --avd_port 5554 --stoat_port 2000 --project_type gradle --model_time 30m --mcmc_time 30m

But i don't find coverage.ec file in coverage dir.

tingsu commented 2 years ago

Hello, did you instrument the markor.apk before running Stoat? If you want to collect the coverage, you need to instrument the app using Jacoco by yourself. If the apk was instrumented, you should be able to get the coverage.ec file.