Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Python unittest failed

Andrey Petrov September 28, 2017

Hi All, I am running python unittests (about 90 tests - some of them success, some of them failed) and Junit doesn't work.

It looks like I need to have success on "unittest step". Does anybody have the similar issue?

1 answer

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 28, 2017

Hi Andrey,

In the instances where they fail what do the logs say?

One post I found recommends using python's -p flag.  You can find that post at Running python unit tests as part of bamboo build.

Reproduce the issue and either post the log snippet from the failure or attach a copy of the log file and we'll take a look.

Cheers,

Branden

Andrey Petrov October 4, 2017

Hi Branden, thanks a lot for you r reply. In general, I have found another solution - in python's docs i read about next point:

if __name__ == '__main__':
unittest.main(exit=False)

The good point here - exit=False.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events