hydropy icon indicating copy to clipboard operation
hydropy copied to clipboard

unittests or nosetests

Open stijnvanhoey opened this issue 8 years ago • 3 comments

Would it be an option to use nosetets as testing environment?

stijnvanhoey avatar Oct 05 '16 20:10 stijnvanhoey

Nose isn't being supported anymore. The leaders of that project have moved on to Nose2. I have also heard good things about PyTest. I tried using it just now, and it seems to be able to run the tests I set up already. I like unittest because it is part of the standard library, but we can switch if you want. We just need to add it to the setup.py module.

mroberge avatar Oct 08 '16 18:10 mroberge

I just proposed as I had experience with it. What would be the potential benefits of using pytest instead of the default library unittest?

stijnvanhoey avatar Oct 14 '16 13:10 stijnvanhoey

I'm not really sure what the advantages are! I would just stick with the standard library until we have a reason to add something to the dependencies.

mroberge avatar Oct 14 '16 21:10 mroberge