Nosetest: does error level 1 set to error?

Windows environment, python 2.7, latest nosetest.

Looking at nosetest docs and googling, I can not see anywhere that nosetest sets the cmd error level for a testing error.

We need this so that our build system detects a test failure.

Questions:

  • Did Nosetest set the cmd line to error level? (if so, where are the docs)
  • If not, what is the appropriate way to handle this? (should my assembly parse some log output or?)
+3
source share
1 answer

%errorlevel%in windows, this is the application return code, usually this is the argument assigned to the call exit(int)(exit code). These return codes are the same as unittest, but the documentation is not very explicit:

testRunner , . sys.exit() , .

, exit False:

, exit = False. sys.exit()

( 2.7 3.1. sys.exit.)

, , , , 0 , 1 ( unittest alone) 2, ( ). , , 0.

+2

All Articles