This is the TDD in OSS workshop repo for GHC 18.
-
Install
ginkgo
. This is our testing framework. -
Fork the repo in github to your account.
-
Clone the repo.
cd ~/go/src/github.com/YOUR-ACCOUNT git clone [email protected]:YOUR-ACCOUNT/find-issues
-
Run the tests!
ginkgo -r -race -parallel .
-
Pick an issue from the issues page.
-
Using a text editor or IDE, create a file in the
acceptance/
directory. -
Write the acceptance test for the new feature.
-
Run the test.
ginkgo -r -race -parallel acceptance/
-
Create a file in the appropriate package directory.
-
Write the unit test.
-
Run the test. It will fail to compile! That's okay!
-
Create a file to write the code. Write the least amount you think you need to get the test to pass.
-
Run the test and fix the code until it goes green!
-
Run the acceptance test and fix the code until it goes green.
-
Refactor if need be.
-
Push the code to a branch or fork of the repo.
-
Create a pull request that references the open issue.
๐You're done!๐
If you have any questions during the workshop, open a github issue on this repo. You can answer other people's questions/issues or vote on issues that you want to have answered or resolved.