Changes between Version 13 and Version 14 of Obsolete/Development/Code/TestingComponents
- Timestamp:
- Oct 3, 2012, 5:18:18 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Obsolete/Development/Code/TestingComponents
v13 v14 118 118 }}} 119 119 120 Finally, we can alter the command status and output for this command with the `set_command_status` and `set_command_output` functions: 121 122 {{{ 123 #!perl 124 # When calling output() on ls -l, it will return foo\nbar 125 set_command_output("ls -l", "foo\nbar"); 126 # Sets $? to 1 127 set_command_status("ls -l", "1"); 128 }}} 129 120 130 === Testing with real profiles (the `Configure` method) === 121 131 … … 200 210 Note that generating the coverage reports slows down the execution of your tests. But it's unvaluable help to find subtle bugs. 201 211 202 203 == Pending issues == 204 205 How will we ship the `Test::Quattor` module? Is the name appropriate? 212 == Customizing the executions == 213 214 All this test infrastructure calls [http://search.cpan.org/~ovid/Test-Harness-3.25/bin/prove prove]. To pass additional parameters to it, just adjust your `~/.provercp`. This is mine: 215 216 {{{ 217 #!sh 218 # Run tests concurrently: 4 tests 219 -j4 220 # Run the script I've been modifying lately first 221 --state=new,save 222 }}} 206 223 207 224 == Conclusion ==