2-attack-of-the-pipelines/README.md | ●●●●● patch | view | raw | blame | history | |
3-revenge-of-the-automated-testing/README.md | ●●●●● patch | view | raw | blame | history |
2-attack-of-the-pipelines/README.md
@@ -704,14 +704,6 @@ 7. We can now test this properly by heading into the `todolist-fe` repository through <YOUR_FAVOURITE_EDITOR>. Make a small change to your code, then commit and push it, ensuring you're on the develop branch. Then head over to Jenkins and wait until the `dev-todolist-fe-build` job has been triggered. 7. All that's left to do is to repeat the same steps for `todolist-api` (Starting from step 3): Create Build Trigger: `https://jenkins-<YOUR_NAME>-ci-cd.apps.some.domain.com/job/dev-todolist-api-build/configure` Create GitLab Integration: `https://gitlab-<YOUR_NAME>-ci-cd.apps.some.domain.com/donal/todolist-api/settings/integrations` Check your build status and you should see something like this. With `Started by Gitlab push by <YOUR_NAME>`: ![jenkins-gitlab-webhook-success](../images/exercise2/jenkins-gitlab-webhook-success.png) 7. We now have a working GitLab webhook so any time we push code it will automatically build! Next up we'll show you how to add tests to your pipeline. _____ 3-revenge-of-the-automated-testing/README.md
@@ -135,7 +135,7 @@ 2. Click `save` or `apply` at the bottom to save the changes. Run the `dev-todolist-fe-build` job and verify that this passes and the `build` and `bake` jobs are both triggered. #### (Optional) Failing the tests > If you're not very confident in your technical ability and want don't want to do the TDD lab; feel free to just do this next section. If you are confident jump on to the e2e testing section below > _If you're not very confident in your technical ability and want don't want to do the TDD lab; feel free to just do this next section. If you are confident jump on to the e2e testing section below_ 2. We're now going to deliberately fail a test to ensure that `bake` and `deploy` jobs aren't triggered if any tests fail. Open the `todolist-fe` source code in your favourite editor. Open `ListOfTodos.spec.js` in `/tests/unit/vue-components` and head to `line 39`. Add `not.` before `toHaveBeenCalled()` to fail the test. ![change-test-to-fail](../images/exercise3/change-test-to-fail.png)