3 ms·
In August of this year I walked into a job interview for an entry-level'ish Rails dev position at a start-up. Already having a great job in education, I made cl
by MattyMc 12y ago
In August of this year I walked into a job interview for an entry-level'ish Rails dev position at a start-up. Already having a great job in education, I made clear that I was weak in testing and needed a plan to patch things up. I'm now very confident with testing using MiniTest. Here're my 2 cents:
- Build something super easy (<4 hours), using Test-Driven Development. The example I used was a URL shortener.
- Rebuild one of your existing apps using Test-Driven Development. If you're wondering where to get started, watch videos titled "creating a simple app using ____ and TDD", or even consider calling the Rails hotline.
- Get someone to look at your test code for you. I learned a ton from this, I can't even begin.
- Use MiniTest. RSpec is amazing, but I found MiniTest to be more transparent as to what was actually happening.
- Check out the codeschool and codeacademy tutorials. Very helpful.
Best of luck. It's a very difficult topic, one that I really struggled with.