mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
Unit Tests
- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
parent
fbdceac548
commit
1c5a9f70cb
6 changed files with 6 additions and 48 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 6;
|
||||
use Test::More tests => 4;
|
||||
|
||||
# Ensure environment has no influence.
|
||||
delete $ENV{'TASKDATA'};
|
||||
|
@ -39,7 +39,6 @@ if (open my $fh, '>', 'limit.rc')
|
|||
print $fh "data.location=.\n",
|
||||
"verbose=affected\n";
|
||||
close $fh;
|
||||
ok (-r 'limit.rc', 'Created limit.rc');
|
||||
}
|
||||
|
||||
# Add a large number of tasks (> 25).
|
||||
|
@ -99,11 +98,5 @@ like ($output, qr/^30 tasks, truncated to 22 lines$/ms, 'limited to page');
|
|||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data limit.rc);
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'limit.rc', 'Cleanup');
|
||||
|
||||
exit 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue