Code Monkey home page Code Monkey logo

practice-for-week-04-tdd-style-long-practice's Introduction

TDD Style Long Practice: Test-Driven Development

Now it is time to start writing some tests! For this next practice, you'll be using test-driven development (TDD). A TDD approach dictates that you'll follow the TDD workflow, meaning that you'll need to follow the TDD workflow of Red, Green, Refactor.

Background and Context

tdd-cycle

The three steps for approaching all of the below problems will be to:

  1. Red: Write the tests and watch them fail (a failing test is red).
  2. Green: Write the minimum amount of code to ensure the test passes.
  3. Refactor: Refactor the code you just wrote to make it readable and maintainable.

You can assume for the rest of the practice that you will be using Mocha as your testing framework and Chai as your assertion library.

Be sure to utilize the available documentation for this practice:

The tests you are writing today will be good practice for the rest of your programming career so take your time and ensure you are writing the best tests you can!

Phase 0: Set up

Clone the starter from the Download link at the bottom of this page.

Run npm install to install any dependencies.

Follow the directions to complete each phase:

  • Phase 1: Testing the reverseString function
  • Phase 2: Testing multiple functions
  • Phase 3: Testing a class
  • Phase 4: Testing multiple classes
  • BONUS Phase 5: Testing the myMap function

practice-for-week-04-tdd-style-long-practice's People

Contributors

aa-assessment-project-manager[bot] 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.