Skip to content

v0.5.0 A minimum unit test framework

Compare
Choose a tag to compare
@olih olih released this 21 Sep 19:47
· 5 commits to main since this release
e4ad4c8
A first experimental version that should be a good starting point (#1)

* Initial model for testing

* Improve testing model

* Adds spec folder

* Adds index model

* Extracts format message

* valid spec file

* Skeleton for runner

* Run the test by printing console

* Change structure to have file specific to function

* zod model for input model

* remove dependency with fs-jetpack

* Reduce dependencies

* standardize function declaration

* introduce execution model

* Adds code for running test case

* Import module and run them dynamically

* Valid fixture example

* Adds snapshot type

* Adds readDataFileSafely safely

* Create context safely for three parameters

* Adds runtime flags to model

* merge TestingRunOpts with main build model

* Load expected snaphot

* Draft snapshot

* Reorganize the code slightly

* Attemp at saving snapshots

* Fix IO snapshot issue

* Uses jest-diff instead of diff

* Adds reportyers

* Adds reporting colors

* Manages success case

* new model with mandatory unique name

* Adds todo and skip field

* Adds support for todo step

* Adds todo and skip

* Create snapshot with a better name

* Adds support for nested folders for specs

* wip of mocha reporter

* Add ID to error message

* wip finction a b c

* WIP trying to be more explicit with number of caharacters

* After refactoring of model

* Small refactoring to limit repetition

* Adds depedency injection examples

* No dependency on dot prop

* More example of transformers

* wip refactoring case executor

* way better code executor

* Adds transformer executor

* Create a list of transformer functions

* move execution context to new file

* Extract get param data

* Adds specific model for getting back data

* Combine transformers in a single one

* Transform the incoming data

* Adds another tests

* Refactor file path

* Test transformer for inputs

* Adds higher function for transformer

* separate case name with two dashes

* Adds transformer on result

* Uses object crumble

* Attempt at mutating object with crumble

* Use Record config for transformer

* adds tumble field

* Adds table to tumble

* Adds tumble executor

* setup context for tumble

* Adds support for tumble on one function

* Small refcatoring for tumble and case executor

* simplify further case executor

* Adds tumble for two and three parameters

* Lint fix

* Inject side effects

* Rename side effect to inject

* Uses inject for file read and write

* Deletes fs for mocha reporter

* snaphot are using inject

* Inject dependency on node.js

* Uses read and writeContent as higher level reading and writing of files

* Add option to add any parser

* A few small doc tweaks