example tdd ruby console game, nethack-like
it's an example of a few things to do with tdd:
- how you can tdd a console application by having a console object/adapter and faking it
- how you can use meaningful high level tests to drive right from start
- how unit tests can arrive a little later as the design gets driven out
so it could be viewed that it should have more unit (class isolation) tests, but there probably would be a shift to more of them as it developed from here... i may take it further and show more of this.
after clone...
install appropriate ruby (see .ruby-version
) and rake (see Gemfile
) then:
bundle install
rake run
let's write a Dockerfile - open an issue or pull request :)
after bundle install has been run, to run tests
rake test
or actually it is the default task so just
rake
should suffice