python 2.7 - How to get number of tests run by Nose? -


nose kicked off programatically:

test_argv = ['nosetests', '-a', 'level=gold', '--with-id']  if __name__ == '__main__':     result = nose.run(argv=test_argv) 

for reporting purposes, record how many tests run nose.

nose's console output has how many tests run.

------------------------------------ ran 294 in x.x seconds 

any ideas of how can access number?

(unfortunately, result bool, it's not helpful...)

you can run --with-xunit plugin generate xml file , read number of test it