Tags
There are no tags for this page.
Attachments
Perl 6
Test Suite Refactoring
Notes:
- When you add a new file to pugs or the test suite, you want to run util/add-svn-props.sh on it
- Use "svn mv" rather than "svn cp" or we'll end up with a lot of duplicate effort fixing tests.
- Create smarklinks Smart Linking for all tests you add (or refactor, or come across while browsing)
Test Fudging
The 'fudge' pre-processor allows per-implementation skip/todo markers
Typical usage in test file:
# tests on which an implementation dies:
#?rakudo skip 'NaN not implemented'
is(sqrt(-1), NaN, 'sqrt(-1) is NaN');
# test that just produce the wrong result:
#?rakudo todo 'higher math'
is(2**2, 4, 'power operator works');
Running A single Test File
To run a test file (and apply fudging) simply run the below from your perl6 directory:
make t/spec/S03-operators/autoincrement.t
|