GithubHelp home page GithubHelp logo

lect13-complete's Introduction

Lecture 13 - Testing

Get started by running git clone https://github.com/Sresht/lect13

Basic Unit Testing

Welcome to the wonderful world of Test Driven Development (TDD)!
For this exercise, you're going to be fixing already written test cases.

  1. Run the success tests: python split_test.py SplitTestCase.test_split_success
  2. Run the failure tests: python split_test.py SplitTestCase.test_split_failure
  3. Read through split_test.py with your in-class partners and understand what's
    happening.
  4. Fix those test cases by modifying the test code
    (you should not need to modify test_split_success or test_split_failure)
  5. Add your own success case and your own failure case!

Treat Yo Self (To Unit Tests)

  1. Run the success tests: python chatbot_test.py ChatbotTestCase.test_parse_message_success
  2. Read through chatbot_test.py with your in-class partners and understand what's
    happening.
  3. Fix those text cases by modify the test code
    (you should not need to modify test_parse_message_success)
  4. For homework, add at least one additional success test and at least 3 failure tests.

CircleCI Set Up

  1. Set your origin to the new site: git remote set-url origin git+ssh://[email protected]/<username>/lect13.git
  2. `git commit -am "Add unit tests"``
  3. git status should be empty
  4. git push origin master

Sign up for Circle CI:

  1. Navigate to https://circleci.com/signup/ and Sign up with Github
  2. Authorize CircleCI.
  3. Make sure you're in the right repo in the top right hand corner (this should be your account, not the organization).
  4. Once you've verified that, click "Set Up Project" next to lect13.
  5. Confirm that the language is set to Python and click "Add Config".
  6. CircleCI might ask if you want to see the new UI. If it does, click "yes" and it should redirect you.
  7. Now it'll bring you to a page that says "Failed".

lect13-complete's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.