Skip to content

I wanted to get some hands on experience with golang whilst also consolidating my learning on TDD so I followed an article on Medium BUT I tried it with GO instead of PYTHON!

Notifications You must be signed in to change notification settings

gowhale/golang-test-driven-development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

golang-test-driven-development

Introduction

I wanted to get some hands on experience with golang whilst also consolidating my learning on TDD so I followed this article: https://medium.com/@elliotchance/lets-talk-about-tdd-baby-5ce11bd9b53b BUT I tried it with GO instead of PYTHON!

To run the tests for yourself

To be able to run the tests in this repo you will need to do the following:

  1. clone this repo
  2. cd into the this repo
  3. run the command: "brew install go"
  4. run the command: "go get github.com/stretchr/testify/assert" (this is equivilant to "pip install xyz")
    1. Make sure you .gitconfig file is up to date for this
  5. finally to run the tests run: "go test -v fizz_buzz.go fizz_buzz_test.go"
  6. Tests will now run.

About

I wanted to get some hands on experience with golang whilst also consolidating my learning on TDD so I followed an article on Medium BUT I tried it with GO instead of PYTHON!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages