Skip to content

Commit 199348e

Browse files
committed
Update from .t to .rakutest
Avoid duplicating list of preferred AND historic extensions here, refer to existing list instead.
1 parent 7214aae commit 199348e

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

doc/Language/modules.pod6

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,8 @@ L<synopsis S11|https://design.raku.org/S11.html#Units> says: Confusing? Yes it
5151
is.> , a C<t> directory for tests, and possibly a C<bin> directory for
5252
executable programs and scripts.
5353
54-
Source files generally use the C<.rakumod> extension, and scripts or
55-
executables use the C<.raku>. Test files use the C<.rakutest> (or C<.t>)
56-
extension. Files which contain documentation use the C<.rakudoc> extension N«The
57-
old C<.p6> (or C<.pl6>), C<.pm6> (or C<.pm> which is also supported, but
58-
discouraged) and C<.pod6> extensions will continue to be supported for 6.e
59-
and marked as B<deprecated> in 6.f».
54+
See L<Language/filename-extensions> for current and historic
55+
extensions for various file types.
6056
6157
=head1 X<Loading and basic importing|Language,compunit>
6258
@@ -632,7 +628,7 @@ control, but it can slow down the installation of popular distributions.
632628
An alternative to placing the C<meta-ok> test in an extended test directory, but
633629
to ensure that it is only run when a developer or maintainer wants to, is to
634630
make the test dependent on an environment variable, e.g., in
635-
C<t/99-author-test.t> there is the following code
631+
C<t/99-author-test.rakutest> there is the following code
636632
637633
=begin code
638634
use Test;
@@ -706,7 +702,7 @@ Vortex-TotalPerspective/
706702
└── bin
707703
│ └── vortex
708704
└── t
709-
└── basic.t
705+
└── basic.rakutest
710706
=end code
711707
712708
If your project contains other modules that help the main module do
@@ -785,7 +781,7 @@ you should put the license's name in the license field. For more details see
785781
L<https://design.raku.org/S22.html#license>.
786782
787783
=item If you don't yet have any tests, you can leave out the C<t>
788-
directory and C<basic.t> file for now. For more information on how to write
784+
directory and C<basic.rakutest> file for now. For more information on how to write
789785
tests (for now), you might have a look at how other modules use
790786
C<Test>.
791787

doc/Language/testing.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Tests can be run individually by specifying the test filename on the
7070
command line:
7171
7272
=for code :lang<shell>
73-
$ raku t/test-filename.t
73+
$ raku t/test-filename.rakutest
7474
7575
To run all tests in the directory recursively,
7676
L<prove6|https://modules.raku.org/dist/App::Prove6> application can
@@ -98,7 +98,7 @@ To abort the test suite upon first failure, set the
9898
C<RAKU_TEST_DIE_ON_FAIL> environmental variable:
9999
100100
=for code :lang<shell>
101-
$ RAKU_TEST_DIE_ON_FAIL=1 raku t/test-filename.t
101+
$ RAKU_TEST_DIE_ON_FAIL=1 raku t/test-filename.rakutest
102102
103103
The same variable can be used within the test file. Set it before loading
104104
the C<Test> module:

doc/Type/Test.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ The result from the test code above will be something like:
699699
=begin code :lang<TAP>
700700
not ok 1 - my-custom-pi # TODO not yet precise enough
701701
# Failed test 'my-custom-pi'
702-
# at test-todo.t line 7
702+
# at test-todo.rakutest line 7
703703
# expected: '3.14159265358979'
704704
# got: '3'
705705
=end code

0 commit comments

Comments
 (0)