Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.22 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.22 KB

JSTester

Two handy applications that can help testing your javascript code.

Web application

Small webapplication that enables to generate a script for doctest-like testing for javascript

Usage:

  • Go to the webapplication link
  • Paste the doctest code
  • Click GO
  • Optionally: click MINIFY (get it all on 1 line, much cleaner.)
  • Paste code in js script
  • Run and see

Example functions:

functions

Example doctest:

functions

Example JSTest outcome:

functions

Example after running:

functions

Contributor

Javascript script

Javascript script to test doctests (considering errors, classes, code flow)

Usage:

Your code should look like this:

  • The code itself
  • The doctests, in the format as shown below (the quotes are important)
  • The doctest.txt script

Example code: code Example output: output

Contributor