consider that, I have 10 test-cases ; and 3 of them are such that, I wan to exit out of the system/run or do some action if they fail ...
I do not want to anything if other 7 test-cases fail or pass.
I do not know how to do it in nose .. however, I could thought of one following way:
set a specific attribute(@attr()) to those 3 test-cases ; access those attribute in to afterTest function(by writing it in plugin ) and then do the needed action if the test-case is failed ( i.e.test.passed == false )
but the problem is that, I am not able to access/get the test-case attributes.
I tried to access it like test.attribs - but nose reported an error saying - AttributeError: 'Test' object has no attribute 'attribs'
Can somebody please help ?
Thank you.