mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
parent
75822eed47
commit
da575c4043
185 changed files with 1591 additions and 1591 deletions
|
@ -43,12 +43,12 @@ if (open my $fh, '>', 'custom.rc')
|
|||
}
|
||||
|
||||
# Generate the help screen, and locate the custom report on it.
|
||||
my $output = qx{../src/task rc:custom.rc help};
|
||||
my $output = qx{../src/task rc:custom.rc help 2>&1};
|
||||
like ($output, qr/task <filter> foo\s+DESC\n/m, 'report.foo');
|
||||
|
||||
qx{../src/task rc:custom.rc add project:A one};
|
||||
qx{../src/task rc:custom.rc add two};
|
||||
$output = qx{../src/task rc:custom.rc foo};
|
||||
qx{../src/task rc:custom.rc add project:A one 2>&1};
|
||||
qx{../src/task rc:custom.rc add two 2>&1};
|
||||
$output = qx{../src/task rc:custom.rc foo 2>&1};
|
||||
like ($output, qr/one/, 'custom filter included');
|
||||
unlike ($output, qr/two/, 'custom filter excluded');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue