Skip to content

Commit

Permalink
Chore(testing): Add unit testing directory to the codebase
Browse files Browse the repository at this point in the history
 - test localhost:3000/
 - Add test script to  package.json
 - Add start script to the package.json
 - Add build script to the package.json

[Maintain #167749943n #167995313]
  • Loading branch information
ibraheem-adeyemo committed Aug 29, 2019
1 parent 0cd5aec commit ad236a9
Show file tree
Hide file tree
Showing 7 changed files with 2,455 additions and 673 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# build directory
build/

# Runtime data
pids
Expand Down
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: node_js

service:
- postgresql

before_script:
- psql -c 'create database travis_ci_test;' -U postgres

node_js:
- 'stable'

install: npm install

dist: trusty

cache:
directories:
- "node_modules"

after_success: npm run coverage
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[![Coverage Status](https://coveralls.io/repos/github/andela/magma-backend/badge.svg?branch=develop)](https://coveralls.io/github/andela/magma-backend?branch=develop)
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
[![Build Status](https://travis-ci.org/andela/magma-backend.svg?branch=develop)](https://travis-ci.org/andela/magma-backend)

Barefoot Nomad - Making company travel and accomodation easy and convinient.
=======
Expand Down
Loading

0 comments on commit ad236a9

Please sign in to comment.