Plain old testing.
  • JavaScript 100%
Find a file
2022-03-28 17:51:07 -07:00
.github/workflows feature: initial commit 2020-12-23 17:11:09 -08:00
test feature: add filtering based on a proposal from Bruno: https://github.com/andyburke/plaintest/pull/1 2022-03-28 17:51:07 -07:00
.eslintrc.json feature: initial commit 2020-12-23 17:11:09 -08:00
.gitignore feature: initial commit 2020-12-23 17:11:09 -08:00
index.js feature: add filtering based on a proposal from Bruno: https://github.com/andyburke/plaintest/pull/1 2022-03-28 17:51:07 -07:00
package-lock.json feature: add filtering based on a proposal from Bruno: https://github.com/andyburke/plaintest/pull/1 2022-03-28 17:51:07 -07:00
package.json feature: add filtering based on a proposal from Bruno: https://github.com/andyburke/plaintest/pull/1 2022-03-28 17:51:07 -07:00
README.md feature: add filtering based on a proposal from Bruno: https://github.com/andyburke/plaintest/pull/1 2022-03-28 17:51:07 -07:00

plaintest

example

const assert = require( 'assert' );
const plaintest = require( 'plaintest' );

plaintest.test( 'this is a test', () => {
	assert.ok( true );
} );

const my_group = plaintest.group( 'my group' );
my_group.test( 'this is a test in "my group"', () => {
	assert.ok( true );
} );

plaintest.run( {
	filter: ( group ) => ( group.name === 'my group' ) )
} );

// or a shortcut filter:
// plaintest.run( {
// 		filter: plaintest.filters.group_name( 'my group' )
// } );