I forgot some steps.

DEGREMONT Aurelien a écrit :
> nap a écrit :
>   
>>  
>>
>>     Jean, do you about setting up "Test result", "code coverage" and
>>     pylint
>>     results into Hudson? Do you need help for that.
>>
>> Not yet, so I take all help you can :p
>>     
> For Pylint reports:
>
> 1 Install 'Hudson Violations plugin 
> <http://wiki.hudson-ci.org/display/HUDSON/Violations>' (Admin Hudson > 
> Plugin Manager)
> 2 Add this build step to your project:
> #!/bin/bash
> cd shinken
> pylint -f parseable my_lib_directory > pylint.txt
> echo "pylint complete"
>   
Step 3: Check Report Violations
Add **/pylint in 'pylint' box

> For unittest report:
> 1 Add this build step to your project:
> #!/bin/bash
> cd shinkend
> export PYTHONPATH=$PWD/lib
> nosetests -v -s --with-xunit
> echo "tests complete"
>
>   

Step 2: Check Publish junit report: **/nosetests.xml

> For code coverage report
> 1 Install 'cobertura coverage' plugin (Admin Hudson > Plugin Manager)
> 2 Add this build step to your project:
> #!/bin/bash
> export PYTHONPATH=$PWD/shinken/lib
> cd shinken
> \rm coverage.xml
> coverage erase
> coverage run run_testsuite.py -vv
> coverage xml --omit=/usr/lib
> echo "coverage complete"
>   
Step 3: Check  Publich Cobertura Coverage Report '**/coverage.xml'

> Or just add --with-coverage --erase-coverage to your nosetest line (in 
> previous example)
>   




Aurélien

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Shinken-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to