Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea/
node_modules/
*~

16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: node_js
node_js:
- "0.12"
- "0.11"
- "0.10"
#- "0.8"
#- "0.6"
- "iojs"
- "iojs-v1.0.4"

before_install:
- "npm install -g mocha"
- "npm install chai"

notifications:
email: false
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# for testing
.PHONY: test
test:
mocha
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,68 @@
# Testing Concepts, Framework and Strategies

[![Build Status](https://travis-ci.org/MAP-NCU2015/Lesson-04-Testing.svg)](https://travis-ci.org/MAP-NCU2015/Lesson-04-Testing)

Introduction of testing concept, strategies and current used testing framework in Mozilla. Students are expected to learn the importance of unit tests and know how to write good one.

- [Wiki Page](https://wiki.mozilla.org/Firefox_OS/AcademyNCU2015)

by Askeing Yen & Shing Lyu


## Creating your Pull Request

Before you begin, [set up your Git](https://help.github.com/articles/set-up-git/).

### 1. Create your fork and local clone

You have to **fork** this repository, then navigate to your fork repository.

In the right sidebar of **your repository**, copy the `HTTPS clone URL`.

Open terminal. Change folder to your home (or other workspace folder).
```bash
$ cd ~
```

You can create a local clone of your fork. (You can paste the URL you copied before.)
```bash
$ git clone https://github.com/YOUR_ACCOUNT/Lesson-04-Testing.git
```

Now you have a local clone of your fork repository.
```bash
$ cd Lesson-04-Testing
```

### 2. Complete your work on your local clone

Writing your code and tests.

Running `mocha` locally to make sure your tests will pass.

Then you can commit, and push your changes to your fork repository.

(If possible, using `git branch` to manage your changes.)

### 3. Create the Pull Request

Navigate to **your repository**, switch to the branch which has your changes.

Click `Compare, review, create a pull request` button (a green button).

You are presented with a review page.

Type the title (**Your Student ID Number**) and description for your Pull Request.

Click `Create pull request`.

### Reference

For more detail, please see the following articles.

* https://help.github.com/
* https://help.github.com/articles/set-up-git/
* https://help.github.com/articles/fork-a-repo/
* https://help.github.com/articles/managing-branches-in-your-repository/
* https://help.github.com/articles/creating-a-pull-request/
* https://help.github.com/articles/using-pull-requests/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "Demostrates why auto testing is important",
"scripts": {
"test": "./node_modules/mocha/bin/mocha"
"test": "make test"
},
"author": "Askeing Yen & Shing Lyu",
"license": "MPLv2",
Expand Down