Sha256: 2b31eeb6bf931b96e6d359119e16f8a783c7a2324657ab188c9d67905beb041e

Contents?: true

Size: 1.06 KB

Versions: 89

Compression:

Stored size: 1.06 KB

Contents

# Running the Tests

## Run All Tests

The test (`.t`) files are just Perl 6 scripts, so you can run them directly as any other script:

`perl6 bob.t`

This will produce an output like:

````
1..2
ok 1 - Load module
ok 2 - Class Bob has hey() method
````

(this is called the [TAP - Test Anything Protocol](https://en.wikipedia.org/wiki/Test_Anything_Protocol) format)

## Stop After First Failure

If you have the `PERL6_TEST_DIE_ON_FAIL` environment variable set, the test runner will stop after the first failure. For example:

In Linux / OS X:

````bash
export PERL6_TEST_DIE_ON_FAIL=1
# now all the follow up runs will stop at the first failure
perl6 bob.t
# until we do
unset PERL6_TEST_DIE_ON_FAIL
# or you can use it for one run like this:
PERL6_TEST_DIE_ON_FAIL=1 perl6 bob.t
````

Or in Windows:

````
SET PERL6_TEST_DIE_ON_FAIL=1
REM now all the follow up runs will stop at the first failure
perl6 bob.t
REM until we do
set PERL6_TEST_DIE_ON_FAIL=
````

For more information see the [Testing chapter of the Perl 6 Documentation](https://docs.perl6.org/language/testing.html).

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
trackler-2.0.6.33 tracks/perl6/docs/TESTS.md
trackler-2.0.6.32 tracks/perl6/docs/TESTS.md
trackler-2.0.6.31 tracks/perl6/docs/TESTS.md
trackler-2.0.6.30 tracks/perl6/docs/TESTS.md
trackler-2.0.6.29 tracks/perl6/docs/TESTS.md
trackler-2.0.6.28 tracks/perl6/docs/TESTS.md
trackler-2.0.6.27 tracks/perl6/docs/TESTS.md
trackler-2.0.6.26 tracks/perl6/docs/TESTS.md
trackler-2.0.6.25 tracks/perl6/docs/TESTS.md
trackler-2.0.6.24 tracks/perl6/docs/TESTS.md
trackler-2.0.6.23 tracks/perl6/docs/TESTS.md
trackler-2.0.6.22 tracks/perl6/docs/TESTS.md
trackler-2.0.6.21 tracks/perl6/docs/TESTS.md
trackler-2.0.6.20 tracks/perl6/docs/TESTS.md
trackler-2.0.6.19 tracks/perl6/docs/TESTS.md
trackler-2.0.6.18 tracks/perl6/docs/TESTS.md
trackler-2.0.6.17 tracks/perl6/docs/TESTS.md
trackler-2.0.6.16 tracks/perl6/docs/TESTS.md
trackler-2.0.6.15 tracks/perl6/docs/TESTS.md
trackler-2.0.6.14 tracks/perl6/docs/TESTS.md