Releases: datafilter/t3st
A point in time.
Releases are somewhat arbitrary now, since all changes are tested automatically when pushed to the repo, and new versions are released when all tests pass.
Whats new since the last release?
A way to generate code coverage is shown in the t3st help command.
A way to import javascript modules that have a ".js" filename extension instead of ".mjs"
Cleaner error output.
Home is where the heart is
Cli runs test in currecnt or target directory via:
When you are in the directory:
t3st
From anywhere:
t3st [project directory/tests]
t3st [project directory] (which changes to target [project directory/tests] by detecting project.json file)
Birds of a feather
Assert yields false for isomorphic objects with different references.
Ergo:
alike(object, object)
Compares the data of value objects
Run forest, run!
Closed all to-do's and added a bunch of tests. Kudo's to PR's that test the untested.
run
Run all the tests in a directory. Prints to screen by default (can be changed by passing function of what to do with result), and sets exit code to 1 on error.
affirm
(...args) => expression with args => assert(true, expression)
Prints each arg on error to help with debugging.
Assert(this, that)
// Does same as assert(this === that)
// but also shows the expression in the error message
assert(actual, expected)
// or if you are into saying things like: is blue the color of the sky ?
// instead of just : is the sky blue ?
assert(expected, actual)Latest and greatest
The last release version had everything you ever wanted from a test framework..
This release is even better because it has a greater, more prominent and even higher version number than ever before !
All you need
It has testing with assert.
It shows you whether a failure was because of
~ the evaluation (and prints the evaluation!),
~ or whether it came from something unexpected!
You could even print your tests to the console 😮