Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

3.0 Objectives

Gareth edited this page Apr 14, 2015 · 5 revisions

Assignment 3.0 - 100% coverage

https://github.com/hueniverse/hueniversity/issues/79

Make sure you read the entire issue as there are many clarifying questions and answers in the thread.

Lesson Objectives

  • Use Travis CI to automate testing of your project.
  • Learn basics of testing utility hapijs / lab.
  • Use hapijs / code BDD assertion library with "lab".
  • Use lab and code requiring 100% test coverage and linting with default rules.
  • Write basic tests to verify our plugin works.
  • Create a standard hapi.js Makefile to make it easy to generate testing reports (Example: HTML coverage report).
  • Use npm to install new packages and modify your package.json file.
  • Above objectives based on hueniversity's milestone 0.0.3 (must read)

Contents

  1. git setup
  2. Configure for Travis
  3. Install Packages Using npm
  4. Refactor Start Up Process
  5. Testing with lab and code
  6. Your done! Make sure you get %100 coverage with tests.

Resources Used to Build this Tutorial:

@TheAlphaNerd Assignment3
@Chyld Assignment3
@idanwe Assignment3
@zoe-1 Assignment3
This tutorial is commentary on above code :-)

Other Helpful Resources

@hueniverse's node.js code tips