jeudi 20 avril 2017

User input in python unittest + pretty output

I'm writing a test suite in Python, and I sometimes need to ask for user inputs. Actually, some tests can only be validated by a human being and I'd like to ask for validation to the human who ran the test suite.

I had good results using the unittest module, but the output is horrible ... (+ non colored !)

I then tried Pyrg and nosetests. The outputs were far better, but impossible to ask for a user input :-(

I really want something colored and well formated, and I can't deal without the user input as some results are impossible to assert for a machine.

Do you guys have an idea of what module/framework I could use ?

Aucun commentaire:

Enregistrer un commentaire