Changes between Version 13 and Version 14 of Obsolete/Development/Code/TestingComponents


Ignore:
Timestamp:
Oct 3, 2012, 5:18:18 PM (12 years ago)
Author:
munoz
Comment:

--

Legend:

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

    v13 v14  
    118118}}}
    119119
     120Finally, 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
     125set_command_output("ls -l", "foo\nbar");
     126# Sets $? to 1
     127set_command_status("ls -l", "1");
     128}}}
     129
    120130=== Testing with real profiles (the `Configure` method) ===
    121131
     
    200210Note that generating the coverage reports slows down the execution of your tests. But it's unvaluable help to find subtle bugs.
    201211
    202 
    203 == Pending issues ==
    204 
    205 How will we ship the `Test::Quattor` module? Is the name appropriate?
     212== Customizing the executions ==
     213
     214All 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}}}
    206223
    207224== Conclusion ==