Skip to content

Commit

Permalink
Use new container and add done-testing to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniogamiz committed Mar 15, 2020
1 parent c6c1e38 commit 4d3c2fc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
- docker

install:
- docker pull jjmerelo/test-perl6
- docker pull jjmerelo/raku-test
- docker images

script:
- docker run -t -v $TRAVIS_BUILD_DIR:/test jjmerelo/test-perl6
- docker run -t -v $TRAVIS_BUILD_DIR:/test jjmerelo/raku-test
2 changes: 2 additions & 0 deletions t/007-load-precompile.t
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ rmtree(cache-name);
Perl6 is quite awesome.
=end pod

done-testing;
4 changes: 3 additions & 1 deletion t/010-cached.t
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,6 @@ rmtree REP ;

#--MARKER-- Test 8
throws-like { $cache .= new(:source( DOC ), :path( REP )) },
Exception, :message(/'is not a directory'/), 'Detects absence of source directory';
Exception, :message(/'is not a directory'/), 'Detects absence of source directory';

done-testing;
2 changes: 2 additions & 0 deletions t/020-source.t
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,5 @@ is-deeply $cache.hash-files(<Valid Old>), %( 'a-pod-file' => 'Valid', 'pod-file-
=end pod
POD-CONTENT

done-testing;
2 changes: 2 additions & 0 deletions t/040-pod-extraction.t
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ throws-like { $cache.update-cache }, Exception, :message(/ 'Cannot update frozen

#--MARKER-- Test 11
throws-like {$cache.pod('xxxyyyzz') }, Exception, :message(/ 'Source name 「xxxyyyzz」 not in cache'/), 'Cannot get POD for invalid source name';

done-testing;
2 changes: 1 addition & 1 deletion t/050-multiple-instance.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ for ^COUNT {
ok (REP ~ $_ ).IO.d
}

done-testing;
done-testing;

0 comments on commit 4d3c2fc

Please sign in to comment.