harisheth / nsiqcppstyle

Automatically exported from code.google.com/p/nsiqcppstyle
0 stars 0 forks source link

Please document how to run the unit tests on the rules. #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?
linux latest version 0.2.2.3

Please provide any additional information below.

I would like to write some custom rules for my project. For that I would like 
to have unit tests. I see that there is a facility to run unit tests on the 
rules, but I cannot figure out how to run them

Original issue reported on code.google.com by roman.hi...@gmail.com on 21 Feb 2013 at 10:20

GoogleCodeExporter commented 8 years ago
It is pretty simple, use python unittest for that. It accept patterns of rules.
For example, if you wish to test all rules, execute:
python2.7 -m unittest discover -p 'RULE_*'

See python unittest documentation for more details (for example, you can use 
the -v flag for verbose)

Original comment by nadav...@gmail.com on 29 May 2013 at 6:13