Skip to content
/ wr Public

experimental reimplementation of wr using TDD

License

Notifications You must be signed in to change notification settings

wtsi-ssg/wr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4688a7c · Jan 27, 2025

History

58 Commits
Jan 27, 2025
Jul 2, 2024
Mar 16, 2022
Feb 10, 2023
Dec 3, 2024
Feb 28, 2022
Jul 16, 2021
Jan 22, 2021
Mar 16, 2022
Mar 16, 2022
Aug 20, 2020
Jul 2, 2024
Oct 28, 2021
Aug 20, 2020
Feb 10, 2023
Jul 3, 2024
Jan 27, 2025
Jan 27, 2025

Repository files navigation

wr

experimental reimplementation of wr using TDD

NB: for compatability with older versions of docker, you may have to explictly set something like export DOCKER_API_VERSION=1.41, depending on the API version that your version of docker server supports.

Developers

To develop this code base, you should use TDD. To aid this, the test suite is written using GoConvey.

To install goconvey:

cd ~/somewhere_else
git checkout https://github.com/smartystreets/goconvey.git
go build
mv goconvey $GOPATH/bin/

To use goconvey:

cd ~/your_clone_of_this_repository
goconvey &

This will pop up a browser window which will aid in the red-green-refactor cycle.

To run the tests on the command line: go test ./... or make test or make race

To run the benchmarks: go test -run Bench -bench=. ./... or make bench

Before committing any code, you should make sure you haven't introduced any linting errors. First install the linters: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1

Then: make lint