Test.Base - Data Driven Testing Base Class
var t = new Test.Base(); var filters = { input: 'upper_case' }; t.plan(1); t.filters(filters); t.run_is('input', 'output'); function upper_case(string) { return string.toUpperCase(); } /* Test === Test Multiline Upper Case --- input foo bar baz --- output FOO BAR BAZ */
Test.Base is a Javascript port of Perl's Test::Base.
For a feel of how Test.Base works, see Perl's Test::Base documenation (for now).
To use Test.Base in a project, follow the instructions in sample/README.
Ingy döt Net <ingy@cpan.org>
Copyright (c) 2006, 2008. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install JS::Test::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JS::Test::Base
CPAN shell
perl -MCPAN -e shell install JS::Test::Base
For more information on module installation, please visit the detailed CPAN module installation guide.