From 7c82c1bb18986f51fb3e8668a2cab6212ae03e9b Mon Sep 17 00:00:00 2001 From: Rob Harris <roharris@redhat.com> Date: Tue, 17 Apr 2018 19:31:47 +0200 Subject: [PATCH] Merge branch 'exercise3/what-is-tdd' of https://github.com/rht-labs/enablement-docs into exercise3/what-is-tdd --- exercises/images/exercise4/jabbas-palace.jpg | 0 exercises/3-revenge-of-the-automated-testing/README.md | 9 ++++++--- exercises/images/jabbas-palace.jpg | 0 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/exercises/3-revenge-of-the-automated-testing/README.md b/exercises/3-revenge-of-the-automated-testing/README.md index 053d7d8..ea02c3e 100644 --- a/exercises/3-revenge-of-the-automated-testing/README.md +++ b/exercises/3-revenge-of-the-automated-testing/README.md @@ -1,4 +1,4 @@ -# Exercise Title +# Revenge Of The Automated Testing > The purpose of this lab is to develop and validate a new feature using TDD; and to promote the assured feature through the pipeline. @@ -98,13 +98,16 @@ - There are 12 Frontend test files stored in these directories: `todolist-fe/tests/unit/vue-components/*` & `todolist-fe/tests/unit/javascript/*` -2. Explanation of JS test syntax through Bananalogy: +2. Explanation of Mocha and js test syntax through Bananalogy: ![todoitem-fail-test](../images/exercise3/bdd-bananas.png) + * TODO - expand upon this. + * `describe` is used to group tests together. The string `"a bunch of ripe bananas"` is for human reading and allows you to identify tests. + * `it` is a statement that contains a test. It should contain an assertion such as `expect` or `should`. It follows the syntax of `describe` where the string passed in identifies the statement. +2. Visit [mochajs.org](https://mochajs.org/) for more in-depth documentation. ### Part 1 - Tests in our Pipeline - > _In this exercise we will improve the pipeline created already by adding some unit tests for the frontend & backend along with some end to end tests (e2e) to validate the full solution_ #### Part 1a - Unit tests diff --git a/exercises/images/exercise4/jabbas-palace.jpg b/exercises/images/exercise4/jabbas-palace.jpg new file mode 100644 index 0000000..48e32d2 --- /dev/null +++ b/exercises/images/exercise4/jabbas-palace.jpg Binary files differ diff --git a/exercises/images/jabbas-palace.jpg b/exercises/images/jabbas-palace.jpg new file mode 100644 index 0000000..48e32d2 --- /dev/null +++ b/exercises/images/jabbas-palace.jpg Binary files differ -- Gitblit v1.9.3