Intro to TDD Workshop

A starter setup for partipants of the Coding Black Females Test-Driven Development workshop

Getting Started

This setup uses the programming language Ruby, and the testing tool RSpec.

  1. If you don't have Ruby installed, please follow the instructions here: https://www.codecademy.com/articles/ruby-setup. Install Ruby version 2.4.2 or above, instead of 2.2.0.

  2. Please ensure you have a code editor installed on your machine, such as VS Code.

  3. Please ensure you're comfortable navigating directories using the cd command in the terminal / command line

Installation

  1. Clone this repo or download it to your machine using the following link: https://github.com/CodingBlackFemales/intro-to-tdd-workshop/archive/refs/heads/main.zip
  2. If downloaded, unzip the file into a directory of your choice
  3. Open the directory in your code editor
  4. Open the terminal. In VS Code, this can be done by navigating to the menu at the top and selecting: Terminal > New Terminal
  5. There are two sub-directories within the directory called fizzbuzz and leap_year. In your terminal, navigate to one of the subdirectories, and run the following to install the required packages: bundle install
  6. To check the installation was successful, enter the following to run the tests: rspec or rspec -f d
  7. Repeat steps 5-6 for the other directory

Helpful Resources

Ruby Skeleton: A basic starter Ruby project setup, with RSpec https://github.com/CodingBlackFemales/ruby-skeleton/

Kata List: A list of exercises you can try with your TDD skills https://github.com/gamontal/awesome-katas

Workshop Exercise Solutions: Step-by-step solutions for the fizzbuzz and leap year exercises

Click to view the solutions (after you've completed the workshop) https://github.com/CodingBlackFemales/intro-to-tdd-solutions