mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-02 05:30:23 +02:00
Unit Tests
- Fixed a series of bugs to improve the test suite results.
This commit is contained in:
parent
f3d3126839
commit
ce4f26bdf3
7 changed files with 32 additions and 22 deletions
|
@ -33,7 +33,8 @@ use Test::More tests => 8;
|
|||
# Create the rc file.
|
||||
if (open my $fh, '>', 'args.rc')
|
||||
{
|
||||
print $fh "data.location=.\n";
|
||||
print $fh "data.location=.\n",
|
||||
"confirmation=no\n";
|
||||
close $fh;
|
||||
ok (-r 'args.rc', 'Created args.rc');
|
||||
}
|
||||
|
|
|
@ -33,7 +33,8 @@ use Test::More tests => 6;
|
|||
# Create the rc file.
|
||||
if (open my $fh, '>', 'bug_concat.rc')
|
||||
{
|
||||
print $fh "data.location=.\n";
|
||||
print $fh "data.location=.\n",
|
||||
"confirmation=no\n";
|
||||
close $fh;
|
||||
ok (-r 'bug_concat.rc', 'Created bug_concat.rc');
|
||||
}
|
||||
|
|
|
@ -54,7 +54,13 @@ like ($output, qr/Imported 2 tasks successfully, with 0 errors./, 'no errors');
|
|||
|
||||
$output = qx{../task rc:import.rc list};
|
||||
like ($output, qr/1.+H.+this is a test/, 't1');
|
||||
diag ("---");
|
||||
diag ($output);
|
||||
diag ("---");
|
||||
like ($output, qr/2.+another task/, 't2');
|
||||
diag ("---");
|
||||
diag ($output);
|
||||
diag ("---");
|
||||
|
||||
# Cleanup.
|
||||
unlink 'import.txt';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue