@pmoo/testy
Advanced tools
Changelog
[7.1.0] - 2024-05-23
Some achievements to celebrate this release: 100 closed issues and 14 contributors (1 new!)
Changelog
[7.0.2] - 2024-03-04
Changelog
[7.0.0] - 2024-02-05
:boom: We migrated from CommonJS to ES Modules. This was a heavy change, and it will affect all the users, but we
think it is the right step to go to support modern Node versions. Unfortunately, due to complexity generating the
package, CommonJS will not be supported.ADR #0013
was added with more info about this decision.
:boom: Node 18.x or higher is required. Support for Node 12.x, 14.x and 16.x has dropped. Support for Node 20.x is added. Commit
[docs] API docs using JSDoc: all public methods and some internal ones are now documented, most of them with simple and easy to understand examples. This conforms a documentation more extensive than the README.
[feature] report source code location on failed/errored tests: if your test fails or raises an unexpected error, you'll now see a reference with the failed assertion so it's easier to debug tests with multiple assertions. The line is displayed next to the test name and failure message.
[feature] configurable per test timeout: we have a new configuration
value, timeoutMs
and it makes tests to end with error state if they are not executed within that timeout.
[feature] Improve feedback for wrong usage of raises(): if any of the exception assertions is called with an actual object that is not a function, it will return a translated message with better feedback explaining it is invalid. The test is considered error instead of failure.
[bug] exit code 0 and no tests run when a promise is not settled: bug that motivated the addition of the timeout feature. Now if you have tests that for some reason do not resolve or reject their promises, the tool will give you feedback about that.
[bug] failFast configuration parameter should fail if an invalid value is provided, thank you @ignacio-r for your first contribution! :tada:
Changelog
[6.1.0] - 2022-07-13
async
/await
in test definitions.[bug] multiple before() or after() empty blocks can be added to a test suite
[bug] swallowed/not precise exception when before() or after() fails
Changelog
[6.0.0] - 2021-11-21
your-branch
-> develop
-> main
, now: your-branch
-> main
)Changelog
[5.1.0] - 2021-01-13
This release includes a lot of contributions (4 new contributors!), and several refactorings to continue improving the quality of the tool.
... and more minor cleanups.
Changelog
[5.0.2] - 2020-10-13
A hacktoberfest release! 5 bugs fixed and two new contributors! :muscle:
It also includes an improvement in the contribution guidelines, and records of architectural decisions (ADRs).
Changelog
[5.0.1] - 2020-08-02
isEqualTo
is used in includes
, doesNotInclude
and includesExactly
.Changelog
[5.0.0] - 2020-05-22
:five: :tada: new release! Including some breaking changes.
testy
script that can be run globally or through npx
..testyrc.json
with the desired configuration parameters. Default values will be used in case the file is not present.