Ecco, il mio setup.py:Come specificare i test da eseguire con "nosetests python setup.py"
https://github.com/mongodb/motor/blob/master/setup.py
... e setup.cfg:
https://github.com/mongodb/motor/blob/master/setup.cfg
mi piacerebbe essere in grado di eseguire una suite, come:
python setup.py nosetests test.test_motor_ssl
Ma ottengo "nome comando non valido 'test.test_motor_ssl'". Con questo, d'altra parte:
python setup.py nosetests --tests test.test_motor_ssl
... nosetests corre ogni prova nel mio progetto. Come posso comunicare a nosetests, quando è in esecuzione in setup.py, come eseguire un sottoinsieme di test?
Sarebbe uno di questi post/link hai quello che stai cercando? http://stackoverflow.com/questions/3704473/how-do-i-run-a-single-test-with-nose-in-pylons http://stackoverflow.com/questions/11210519/manually-adding-test -suite-to-nose/13996879 # 13996879 http://blog.cesarcd.com/2011/11/python-testing-with-nose-by-example.html Cheers – gorbysbm
No, perché questi messaggi/link non rispondono la domanda nel modo in cui l'ho posta, in particolare evidenziata in grassetto: non mi dicono come eseguire una suite di test quando nose è in esecuzione in setup.py. –