Skip to content

Commit

Permalink
Skip most tests for non-author installations
Browse files Browse the repository at this point in the history
Since we offer p6doc, this distro is also installed by users
who want that tool. There's no reason to abort those installs
just because someone used tabs in the text.

Skips all the author-related tests, including tests for helper
utilities like Pod::Convenience.
  • Loading branch information
zoffixznet committed Mar 21, 2018
1 parent 02345db commit 03a749d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions t/00-load.t
Expand Up @@ -2,6 +2,7 @@

use v6;
use Test;
BEGIN plan :skip-all<Test applicable to git checkout only> unless '.git'.IO.e;

plan 1;

Expand Down
4 changes: 2 additions & 2 deletions t/meta.t
@@ -1,11 +1,11 @@
#!/usr/bin/env perl6

use v6;

use lib 'lib';
use Test;
use Test::META;
BEGIN plan :skip-all<Test applicable to git checkout only> unless '.git'.IO.e;

use Test::META;
meta-ok;

done-testing;
5 changes: 3 additions & 2 deletions t/pod-convenience.t
@@ -1,10 +1,11 @@
#!/usr/bin/env perl6

use v6;
use Test;
use lib 'lib';
use Pod::Convenience;
use Test;
BEGIN plan :skip-all<Test applicable to git checkout only> unless '.git'.IO.e;

use Pod::Convenience;
plan 10;

subtest {
Expand Down
1 change: 1 addition & 0 deletions t/pod-htmlify.t
Expand Up @@ -3,6 +3,7 @@
use v6;
use Test;
use lib 'lib';
BEGIN plan :skip-all<Test applicable to git checkout only> unless '.git'.IO.e;
use File::Temp;

BEGIN {
Expand Down
4 changes: 3 additions & 1 deletion t/pod-valid.t
@@ -1,8 +1,10 @@
#!/usr/bin/env perl6

use v6;
use Test;
use lib 'lib';
use Test;
BEGIN plan :skip-all<Test applicable to git checkout only> unless '.git'.IO.e;

use Test-Files;

=begin overview
Expand Down
4 changes: 3 additions & 1 deletion t/pod6.t
@@ -1,8 +1,10 @@
#!/usr/bin/env perl6

use v6;
use Test;
use lib 'lib';
use Test;
BEGIN plan :skip-all<Test applicable to git checkout only> unless '.git'.IO.e;

use Test-Files;

my @files = Test-Files.files;
Expand Down
3 changes: 2 additions & 1 deletion t/tabs.t
@@ -1,8 +1,9 @@
#!/usr/bin/env perl6

use v6;
use Test;
use lib 'lib';
use Test;
BEGIN plan :skip-all<Test applicable to git checkout only> unless '.git'.IO.e;
use Test-Files;

my @files = Test-Files.files\
Expand Down

1 comment on commit 03a749d

@zoffixznet
Copy link
Contributor Author

@zoffixznet zoffixznet commented on 03a749d Mar 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure if this skips too much. Basically, the goal is to ensure regular installations with zef just test only what's being installed, like p6doc. Stuff like tabs, "no .pod files", valid pod, etc. are author tests that shouldn't be run during user installations.

Based on: https://irclog.perlgeek.de/perl6/2018-03-21#i_15949534

Please sign in to comment.