Strumenti Utente

Strumenti Sito


Questa è una vecchia versione del documento!

Download nostrils version 0.1

nostrils is a Python script written to easily compare the results of test suites across different references (commits/branches/tags).

It will run the tests suite on the required commits, build any extension if needed (that is, run the build_ext of the and print out a diff of the test results. This comes handy when the repo you are working on already has failing tests, possibly many of them, and you want to quickly isolate any regression caused by your modifications.

nostils runs tests for the two commits in parallel. Moreover, it caches test results, so if it is called again on some given ref (typically master!), it will fetch them instead than rerunning the test suite (this behaviour can be overridden with the –force argument).


This is the typical usage:

nostrils mybranch

It will compare the results of nosetests3 on mybranch with the results on master.

You can specify a different benchmark commit as follows (this will compare with the previous commit in mybranch):

nostrils mybranch~1 mybranch

You can also ask nostrils to run a different command than notestests3 by setting the environmental variable TESTCMD, as in:

TESTCMD=nosetests nostrils mybranch
nostrils.1475770398.txt.gz · Ultima modifica: 2016/10/06 18:13 da pietro