Minesweeper: Testing setup
- 2020-07-19
- Roeland Matthijssens
Today I started setting up my development environment and testing setup
As an exercise for myself I’m going to attempt to use TDD to develop this project. I’m a big fan of TDD for the functional components of an application. My main structure of the application will be a pure functional core that grows in a TDD fashion. Encapsulated by a imperative shell that will facilitate the connection to the database and frontend. This means that for first couple of releases there will only be functional changes without any actual rails interaction.
Testing
I started using just simple minitest but it quickly turns out that i’m a much bigger fan of rspec. So i’m going to install that in my rails application.
Since i’m going to try a full TDD approach its imperative to get the correct tooling setup from the get go. This means i want to have my test run automatically whenever i change any ruby file or test. After some searching it turns out Guard is used in the rails community for that. I tried it out for a bit and it works pretty well.