| | 149 | |
| | 150 | == Running the tests == |
| | 151 | |
| | 152 | If 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 | |
| | 159 | The `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 | |
| | 165 | If 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 | |
| | 174 | I 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. |