0.3.1 • Published 9 months ago

@volebo/mocha-helpers v0.3.1

Weekly downloads
2
License
SEE LICENSE IN LI...
Repository
gitlab
Last release
9 months ago

mocha-helpers

Useful tools for mocha in one package


filename2suitename

generates the name for the root test-suite in the file.

'use strict'

describe(filename2suitename(__filename), () => {
	// your tests
})

tags

provided by mocha-tags. provides an ability to filter TESTS by tags

A. use in your test files:

tags(
	'slow',           // describe tags for the root test
	'network',
).describe(filename2suitename(__filename), () => {
	// your tests
})

B. call mocha with filtered tests

mocha --tags "not:slow is:network"

================================================================================

Contributing

You could take part in the development process, just follow this guideline.

License

Please, read the LICENSE file in the root of the repository (or downloaded package).

0.3.1

9 months ago

0.2.6

5 years ago

0.2.2

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.0

5 years ago

0.1.0

8 years ago