01.05
- 1.5 Change an existing automated test
- Learning Objectives
- Change an existing automated test
- EXERCISE: Make changes to an automated test and commit to GitHub
- EXERCISE: Make changes to an automated test and commit to GitHub (OPTIONAL)
1.5 Change an existing automated test
Learning Objectives
By the end of this lesson you will be able to:
- Change an existing automated test and commit it to GitHub.
Change an existing automated test
EXERCISE: Make changes to an automated test and commit to GitHub
- From your AWSCLI instance, go to the unit tests directory.
Open the test file as shown below.
“` $ sudo vim BeerServiceUnitTest.java
“`
Make a modification to the contents of the file and save it.
Add the file in Git
“` $ git add BeerServiceUnitTest.java
“`
Commit the file to Git
“` $ git commit -m “Modified test script”
“`
Push it to the Git master.
“` $ git push
“`
EXERCISE: Make changes to an automated test and commit to GitHub (OPTIONAL)
- From your AWSCLI instance, go to sample_app.
Open the test file as shown below.
“` $ sudo vim users_controller_spec.rb
“`
Make a modification to the contents of the file and save it.
Add the file in Git
“` $ git add .
“`
Commit the file to Git
“` $ git commit -m “Modified test script”
“`
Push it to the Git master.
“` $ git push
“`