This testing framework was made for a school assignment. The testing framework lives inside of the testframework
folder, while in the seconds-converter
there is a dummy project, with test cases for most of the code writtin inside it.
This testframework by no means replaces a traditional testing framework, because those are way more robust and featurefull. However it was interesting to see how little was needed for a small testing framework.
- Install the right node version
nvm install
nvm use
- Make the testing framework globally linkable
cd testframework
npm link
- Symlink the testing framework inside the project
cd ../seconds-converter
npm link
- Run the tests!
npm test