mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 14:36:44 +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
|
@ -39,15 +39,15 @@ if (open my $fh, '>', 'enp.rc')
|
|||
}
|
||||
|
||||
# Test the en passant feature.
|
||||
qx{../src/task rc:enp.rc add foo};
|
||||
qx{../src/task rc:enp.rc add foo bar};
|
||||
qx{../src/task rc:enp.rc 1,2 do /foo/FOO/ pri:H +tag};
|
||||
my $output = qx{../src/task rc:enp.rc info 1};
|
||||
qx{../src/task rc:enp.rc add foo 2>&1};
|
||||
qx{../src/task rc:enp.rc add foo bar 2>&1};
|
||||
qx{../src/task rc:enp.rc 1,2 do /foo/FOO/ pri:H +tag 2>&1};
|
||||
my $output = qx{../src/task rc:enp.rc info 1 2>&1};
|
||||
like ($output, qr/Status\s+Completed/, 'en passant 1 status change');
|
||||
like ($output, qr/Description\s+FOO/, 'en passant 1 description change');
|
||||
like ($output, qr/Priority\s+H/, 'en passant 1 description change');
|
||||
like ($output, qr/Tags\s+tag/, 'en passant 1 description change');
|
||||
$output = qx{../src/task rc:enp.rc info 2};
|
||||
$output = qx{../src/task rc:enp.rc info 2 2>&1};
|
||||
like ($output, qr/Status\s+Completed/, 'en passant 2 status change');
|
||||
like ($output, qr/Description\s+FOO bar/, 'en passant 2 description change');
|
||||
like ($output, qr/Priority\s+H/, 'en passant 2 description change');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue