Exploratory. Learning unit & functional testing with Chai. Features that is being explorated:
-
Unit Testing (
- Basic Assertion (isNull, isDefined, isOk, isTrue) (& +Not)
- Equality (equal, strictEqual, deepEqual) (& +Not)
- Comparisons ((isAbove & isAtMost), (isBelow, isAtLeast), approximately)
- Arrays (isArray, include) (& +Not)
- Strings (isString, include, match) (& +Not)
- Object (property, typeOf, instanceOf) (& +Not) )
-
Functional Testing (
- GET
/hello
- GET
/hello
with queryname
- PUT
/travellers
with input from web form- Form
surname
to try:- Polo
- Colombo
- da Verrazzano
- Form
- Test via headless browser using Zombie.js
- Assertion in headless browser:
- HTTP response 200 (success())
- text from span#id
- elements from span#id )
- GET
Link to web app: https://qa-fcc-chai.ricky-kiva.repl.co/