mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
parent
f85ff7bde1
commit
fb11379630
4 changed files with 4 additions and 33 deletions
|
@ -28,7 +28,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use POSIX qw(mktime);
|
||||
use Test::More tests => 7;
|
||||
use Test::More tests => 5;
|
||||
|
||||
# Ensure environment has no influence.
|
||||
delete $ENV{'TASKDATA'};
|
||||
|
@ -40,7 +40,6 @@ if (open my $fh, '>', 'count.rc')
|
|||
print $fh "data.location=.\n",
|
||||
"confirmation=off\n";
|
||||
close $fh;
|
||||
ok (-r 'count.rc', 'Created count.rc');
|
||||
}
|
||||
|
||||
# Test the count command.
|
||||
|
@ -85,11 +84,5 @@ TODO: {
|
|||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data count.rc);
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'count.rc', 'Cleanup');
|
||||
|
||||
exit 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue