Rob Harris
2018-04-17 7c82c1bb18986f51fb3e8668a2cab6212ae03e9b
Merge branch 'exercise3/what-is-tdd' of https://github.com/rht-labs/enablement-docs into exercise3/what-is-tdd
2 files added
1 files modified
9 ■■■■■ changed files
exercises/3-revenge-of-the-automated-testing/README.md 9 ●●●●● patch | view | raw | blame | history
exercises/images/exercise4/jabbas-palace.jpg patch | view | raw | blame | history
exercises/images/jabbas-palace.jpg patch | view | raw | blame | history
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
exercises/images/exercise4/jabbas-palace.jpg
exercises/images/jabbas-palace.jpg