[katello-devel] New rake task to test headpin- and katello-mode

Lukas Zapletal lzap at redhat.com
Thu Jan 17 16:31:40 UTC 2013


Nice, can you put this on the WIKI somewhere? I think I will be googling
this :-)

Or maybe the list is enough...

Thanks

On Thu, Jan 17, 2013 at 11:12:24AM -0500, Adam Price wrote:
> bros,
> 
> I merged in a commit a couple days ago that contains the following:
> 
>     
>     Included in this commit a new rake take for running
>     the parallel test with a little more control. It allows for one to run
>     katello- and headpin-only tests using parallel_test.
>     
>     for tests, run:
>     
>         rake ptest:spec
>         # these run with 4 cores, by default
>         # tests for headpin vs katello are determined by the 'app_mode' in
>         # config/katello.yml
>     
>     You can also specify a regular expression to single out particular spec
>     files
>     
>     run:
>     
>         rake ptest:spec['ping'] # spec files with 'ping'
>         rake ptest:spec['user|organization'] # runs 'user' and 'organization' spec files
>         # runs with one core when you specify a search string though you can
>         # override it
>     
>         rake "ptest:spec['user|organization', 36]" # run the spec tests on 36 cores. woah!
>     
>     The way that rspec differentiates between katello and headpin tests is
>     by placing tags on the test blocks.
>     
>     To specify a test to run for katello only, add a `:katello => true` tag
>     
>         describe "set of katello tests", :katello => true do ... end
>         context "set of katello test", :katello => true do ... end
>         it "runs a test for katello only", :katello => true do ... end
>     
>     or `:headpin => true` for headpin-only tests
>     
>         describe "set of headpin tests", :headpin => true do ... end
>         context "set of headpin test", :headpin => true do ... end
>         it "runs a test for headpin only", :headpin => true do ... end
>     
>     For tests that you want to run on both sides, simply do not
>     add a tag.
> 
> Please keep these tags in mind when you're adding new tests. Thanks.
> 
> -- 
> Adam Price
> Software Engineer
> Red Hat Inc., Raleigh
> 
> adprice at redhat dot com
> http://github.com/komidore64
> http://www.ohloh.net/accounts/komidore64
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel

-- 
Later,

 Lukas "lzap" Zapletal
 #katello #systemengine




More information about the katello-devel mailing list