Skip to content

Tiny test runner - following to "Build your own test runner" talk

Notifications You must be signed in to change notification settings

wix-academy/vanilla

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"What I cannot create, I do not understand."

-- Richard P. Feynman

Vanilla - tiny test runner

This is a very simple implementation of a test runner, which helps to understand how it works under the hood. As you might guess, a lot of the features are missing and you can add most of them yourself.

Here are some of the links we've seen at the talk:

Development

Run the following commands from the terminal

npm install
npm test

Aditional features

Try to implement the following features under the current infrastructure.

  1. before/after
  2. beforeEach/afterEach
  3. it.only
  4. it.skip

Guidance

  1. Write the usage of the feature on the example project.
  2. Run npm test and let it fail.
  3. Add the relevant global to the rewireGlobals function.
  4. Add the new state under the constructor.
  5. Change the run function accordingly.

Good Luck! 😃

FAQ

  • How can i install the global vanilla command? - Use npm link from the main directory.
  • How can i remove the global vanilla command? - You can use npm unlink from the vanilla directory.

About

Tiny test runner - following to "Build your own test runner" talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%