On Fri, Nov 26, 2010 at 11:45 AM, DEGREMONT Aurelien <aurelien.degremont@cea.fr> wrote:

I forgot some steps.
Thanks, I was wondering how to integer all in Hudson :p
 

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)
>

Thanks a lot, it's in application. I'll publish the hudson link when it's ok. I try the coverage with nose.


Jean
 




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
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel