UnitTest stop a whole test suite
Not really a question for this forum, but maybe someone can help anyway.
I have a bunch of separate test scripts which I then executes from a test suite using the unittest framwork, like this
-------
class InstallAndLaunc
def test1_myscriptA
import myscriptA
class Login(unittest.
def test1_myscriptB
import myscriptB
def test2_myscriptC
import myscriptC
-------
If I add "assert False" in any of the scripts and running the suite, that test will stop running and the next one will start.
What I wonder is if it is possible to stop ALL tests from within my scripts, e.g. if the installation fail, there is no need to run any of the other tests since it wont work.
Hope it makes sense,
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Linda for more information if necessary.