google/mobly

Implement an option to skip the remaining test suites, if a test fails during execution of suite runner.

santhosh12992 opened this issue · 6 comments

Hi,

If I am running multiple test suites using mobly suite runner, if a test suite fails, we need an option to abort or skip the remaining test suites.

Essentially, it means, we are following a sequence in the test execution and each test is a pre -requisite of following test suite.

Thanks.
-Santhoshkumar M

Just a guess,

should we define 'on_fail(record)' [which is under mobly.base_test module] with asserts.abort_all in the suite_runner calling class?

The goal is abort all the tests using the api that you have mentioned, ** only when there is a failed test case** across all test suite that is being run by suite runner.

Now the question is where to implement this, "asserts.abort_all".

Thanks.