1.1.1 • Published 4 years ago

ready-test v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ReadyTest

Because JS unit testing shouldn't be complicated.

Install

npm install ready-test

Browser

To get up and running in the browser, link the included CSS/JS:

<html>
  <head>
    <link rel="stylesheet" href="node_modules/ready-test/ready-test.css">
  </head>
  <body>
    <script src="node_modules/ready-test/ready-test.js"></script>
  </body>
</html>

Then link your source files and tests:

<html>
  <head>
    <link rel="stylesheet" href="node_modules/ready-test/ready-test.css">
  </head>
  <body>
    <script src="node_modules/ready-test/ready-test.js"></script>
    <script src="src/user.js"></script>
    <script src="test/userTest.js"></script>
  </body>
</html>

Node

To run in node, simply run the shell command provided:

./node_modules/ready-test/bin/readytest

It will find and run any tests like test/userTest.js, test/tests/user.js, etc. You can also add it to your package.json file to run with npm test:

{
  "scripts": {
    "test": "readytest"
  }
}

Docs

http://andrewplummer.github.io/ready-test/

1.1.1

4 years ago

1.1.0

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.33

5 years ago

1.0.34

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago