Skip to content

A homemade js testing framework, written for class assignment

Notifications You must be signed in to change notification settings

AnthonySchuijlenburg/js-test-framework

Repository files navigation

Homemade testing framework

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.

How to setup

  1. Install the right node version
nvm install
nvm use
  1. Make the testing framework globally linkable
cd testframework
npm link
  1. Symlink the testing framework inside the project
cd ../seconds-converter
npm link
  1. Run the tests!
npm test

Results

With a failing test inside the test suite Test result with a failing test

Without a failing test inside the test suite Test result without a failing test

About

A homemade js testing framework, written for class assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published