I'm doing UI test automation on Android using Appium and py.test. I'd like to be able to save a bug report using adb after a test fails.
Is there a way to tell if a test fails in my test code so I can then run save the bug report in the teardown?
Originally, I was just going to save the bug report after each test, but it's a bit excessive adding 45 seconds to each test.