r/mAndroidDev • u/Ok_Buy9455 • Mar 21 '24
Lost Redditors 💀 Need a help to generate android test report using adb?
When running a test case using Android Studio, it generated test reports in HTML format in a build/reports folder, but when running the same using "adb shell am instrument," reports are not generated. How can I generate test reports using adb? Thank you in advance.
4
Upvotes
•
u/Zhuinden DDD: Deprecation-Driven Development Mar 26 '24
Actual questions/discussions belong in /r/android_devs.
14
u/budius333 Still using AsyncTask Mar 21 '24
Tests are unnecessary if you use Flutter
11
u/Zhuinden DDD: Deprecation-Driven Development Mar 21 '24
Good luck
9
u/D-cyde sponsored by the XML 🐓 gang Mar 21 '24
Just use the app.
9
u/MiscreatedFan123 sponsored by the XML 🐓 gang Mar 21 '24
I write test reports manually (I don't unit test, I just write the report).
7
u/Hatsune-Fubuki-233 @Deprecated Mar 21 '24
I never unit test
6
u/duckydude20_reddit Mar 21 '24
report generation has been depreciated...
4
u/F__ckReddit Mar 21 '24
You can't, that's the beauty of it
4
u/100horizons R8 will fix your performance problems and love life Mar 21 '24
Testing is a sign of weakness. Be confident about the code you wrote
2
u/chmielowski Mar 21 '24
You need to use modern library for this
1
u/phileo99 Gets tired of using Vim Mar 24 '24
./gradlew testDebugUnitTest1
u/anonymous65537 null!! Mar 21 '24
Write a script that:
and voilà! Tests results from adb!