SonarQube is an open platform to manage code quality.
https://github.com/SonarSource/sonarqube http://www.sonarsource.com/products/features/continuous-inspection/
SonarQube is an open platform to manage code quality.
https://github.com/SonarSource/sonarqube http://www.sonarsource.com/products/features/continuous-inspection/
Python's built-in unittest module is quite cool, but a bit limited and way too verbose (read: it's quite not easy to incite developers to write unit tests)
I'm currently looking for more dev-friendly solutions, the key points being:
There seem to be 3 solutions in Python:
And 2 ways of gettings things done:
Some links:
Given your unittests are in the tests
directory:
1# run a specific test module
2python -m unittest tests.<module>
3
4# run a specific test suite
5python -m unittest tests.<module>.<class>
6
7# run a specific test
8python -m unittest tests.<module>.<class>.<test>
9
10# run tests matching a given pattern
11python -m unittest discover -s tests -p <pattern>