Changes between Version 17 and Version 18 of Obsolete/Development/Code/TestingComponents


Ignore:
Timestamp:
Dec 11, 2013, 1:34:22 PM (12 years ago)
Author:
munoz
Comment:

--

Legend:

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

    v17 v18  
    125125{{{
    126126#!perl
    127 # When calling output() on ls -l, it will return foo\nbar
    128 set_command_output("ls -l", "foo\nbar");
     127# Set the standard output of the ls -l command.  When calling output() on it, it will return foo\nbar
     128set_desired_output("ls -l", "foo\nbar");
     129# Set the standard error of the ls -l command.
     130set_desired_error("ls -l", "this is an error");
    129131# Sets $? to 1
    130132set_command_status("ls -l", "1");
     
    165167$comp->a_lesser_method($t->{a_subtree});
    166168}}}
     169
     170Your test profiles should live in `src/test/resources`.
    167171
    168172And test whatever you need to test. Simple, right?