Get started by running git clone https://github.com/Sresht/lect13
Welcome to the wonderful world of Test Driven Development (TDD)!
For this exercise, you're going to be fixing already written test cases.
- Run the success tests:
python split_test.py SplitTestCase.test_split_success
- Run the failure tests:
python split_test.py SplitTestCase.test_split_failure
- Read through
split_test.py
with your in-class partners and understand what's
happening. - Fix those test cases by modifying the test code
(you should not need to modifytest_split_success
ortest_split_failure
) - Add your own success case and your own failure case!
- Run the success tests:
python chatbot_test.py ChatbotTestCase.test_parse_message_success
- Read through
chatbot_test.py
with your in-class partners and understand what's
happening. - Fix those text cases by modify the test code
(you should not need to modifytest_parse_message_success
) - For homework, add at least one additional success test and at least 3 failure tests.
- Set your origin to the new site:
git remote set-url origin git+ssh://[email protected]/<username>/lect13.git
- `git commit -am "Add unit tests"``
git status
should be emptygit push origin master
- Navigate to https://circleci.com/signup/ and Sign up with Github
- Authorize CircleCI.
- Make sure you're in the right repo in the top right hand corner (this should be your account, not the organization).
- Once you've verified that, click "Set Up Project" next to lect13.
- Confirm that the language is set to Python and click "Add Config".
- CircleCI might ask if you want to see the new UI. If it does, click "yes" and it should redirect you.
- Now it'll bring you to a page that says "Failed".