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.
by Askeing Yen & Shing Lyu
Before you begin, set up your Git.
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).
$ cd ~You can create a local clone of your fork. (You can paste the URL you copied before.)
$ git clone https://github.com/YOUR_ACCOUNT/Lesson-04-Testing.gitNow you have a local clone of your fork repository.
$ cd Lesson-04-TestingWriting 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.)
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.
For more detail, please see the following articles.