Skip to content

Commit 5ab2b41

Browse files
committed
Added the steps to run the unit tests
1 parent cadb8ae commit 5ab2b41

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
# JavaScript-OOP
22
JavaScript OOP Course Repository
3+
4+
# Preparing the local machine for Unit testing with Mocha and Chai
5+
6+
* Install [Node.js](https://nodejs.org/ "Node.js")
7+
* Try if it is working by typing in CMD/Terminal `$ node -v` (should produce result)
8+
* Open CMD/Terminal and run `$ npm install -g mocha`
9+
10+
# Preparing for the tests for each homework
11+
12+
* Checkout the repository for the particular homework
13+
* Open CMD/Terminal and navigate to the checked out repository with the homework
14+
* Run `npm install` in CMD/Terminal
15+
* A folder `node_modules` should appear
16+
* Your are ready to run the tests
17+
18+
# Running the tests
19+
20+
* Navigate to the folder of the particular homework in CMD/Terminal
21+
* Run `npm test`
22+
* Test results should appear on the CMD/Terminal
23+

0 commit comments

Comments
 (0)