Changes between Version 2 and Version 3 of Obsolete/Development/Code/TestingComponents


Ignore:
Timestamp:
Apr 23, 2012, 9:52:30 PM (14 years ago)
Author:
munoz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Obsolete/Development/Code/TestingComponents

    v2 v3  
    147147
    148148And test whatever you need to test. Simple, right?
     149
     150== Running the tests ==
     151
     152If you set up the `PERL5LIB` environment variable correctly, now all that's missing is to ask the build tools to test:
     153
     154{{{
     155#!sh
     156$ mvn test
     157}}}
     158
     159The `test` phase is run before `package`, so you'll have your tests run whenever you create the RPMs for your component:
     160{{{
     161#!sh
     162$ mvn package
     163}}}
     164
     165If you want to disable these tests (for instance, a wrong `PERL5LIB`), just disable the `module-test` profile:
     166
     167{{{
     168#!sh
     169$ mvn '-P!module-test' package
     170}}}
     171
     172== Conclusion ==
     173
     174I hope this will reduce the effort required to test Quattor code. New components should have a detailed test suite. And older components should receive one.