Strumenti Utente

Strumenti Sito


nostrils

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
nostrils [2016/10/07 14:43]
pietro target
nostrils [2017/03/11 12:46] (versione attuale)
pietro 0.2
Linea 1: Linea 1:
-{{::nostrils:nostrils-0.1.tar.gz |Download nostrils version 0.}}+{{ :nostrils:nostrils-0.2.tar.gz |Download nostrils version 0.}}
  
- +**nostrils** is a Python script written to easily compare the results of test suites across different git refs (commits/branches/tags).
-**nostrils** is a Python script written to easily compare the results of test suites across different git 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'' target of the ''setup.py'') 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. It will run the tests suite on the required commits, build any extension if needed (that is, run the ''build_ext'' target of the ''setup.py'') 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.
Linea 14: Linea 13:
   nostrils mybranch   nostrils mybranch
  
-It will compare the results of ''nosetests3'' on ''mybranch'' with the results on ''master''.+It will compare the results of tests 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''): You can specify a different benchmark commit as follows (this will compare with the previous commit in ''mybranch''):
Linea 20: Linea 19:
   nostrils mybranch~1 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:+In order to specify which test command to run, you should create a file ''~/.config/nostrils/test_commands.py'' containing only a Python dictionary which assigns a command to each repo, such as: 
 + 
 +  { 
 +  '/home/myuser/repo/pandas'./test_fast.sh' 
 +  } 
 + 
 +If at any time you want to run a different command without messing with the config file, you can o so by setting the environmental variable ''TESTCMD'', as in:
  
   TESTCMD=nosetests nostrils mybranch   TESTCMD=nosetests nostrils mybranch
nostrils.txt · Ultima modifica: 2017/03/11 12:46 da pietro