From 0c0c9e076e73616ccad17325ba301f40eabe71bf Mon Sep 17 00:00:00 2001 From: Mark Tyers Date: Fri, 16 Nov 2018 09:19:12 +0000 Subject: [PATCH] added more resources --- 04 Lab 2 Advanced Testing.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/04 Lab 2 Advanced Testing.md b/04 Lab 2 Advanced Testing.md index 052bdbb..b9f2c45 100644 --- a/04 Lab 2 Advanced Testing.md +++ b/04 Lab 2 Advanced Testing.md @@ -6,6 +6,8 @@ In this lab you will be refining your unit tests and augmenting these with the u Resources: 1. [Lecture slides](https://docs.google.com/presentation/d/1rY-Oc4LcSvguGyGSOz2NdOYo8-dtD0yUswmXfbi_-Ls/edit?usp=sharing) +2. [Test Cafe (an alternative acceptance testing tool)](http://devexpress.github.io/testcafe/) +3. [Test Cafe Studio (acceptance testing IDE)](https://testcafe-studio.devexpress.com/documentation/getting-started/) ## 1 Defining API Fitness Functions @@ -42,7 +44,7 @@ In the previous example you were working with the `todo` module which saves and 1. Locate and open the `modules/todo.js` script. 1. Notice that it imports the `node-persist` module and it is this module that reads and writes to and from the hard drive. 2. Run the test suites, this will run the unit tests for both the `todo.js` module and the routes file `index.js`. Note the total runtime of these tests. - 2. This is the module that we need to mock. + 3. This is the module that we need to mock. 2. Locate the `__mocks__` directory in the root directory of the project: 1. Notice that this contains a file called `node-persist.x.js`. This is the mock module. As soon as we change the name to `node-persist.js` it will be used instead of the nom module of the same name. 2. Notice that it exports exactly the same functions with the same signatures as used in the nam module.