TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I made a book about Rails default testing stack

1 pointsby strzibny6 months ago
Hi all,<p>I just epublished my new book on testing Rails applications using Minitest and fixtures called Test Driving Rails[0].<p>= Why, but why<p>Rails default testing stack is probably the least used of the framework&#x27;s default features, yet I fail to understand why. It&#x27;s remarkably simple, elegant, and fast. And I want more people to discover it.<p>Originally the idea for the book was more about somebody else writing it. Time passed and nobody did. There is only one related Minitest book I know of and it’s from 2016. So I wanted to do something about it.<p>= Writing<p>The writing started with my summer move to Bangkok. You can say I write more abroad than at home and it’s true. I like to pair writing with good life experiences and have a good time. Writing is already difficult, so you need to make it easier. I would hate myself for hiding in the dark closet and write by force.<p>The original plan was to finish the book during this time, but of course I didn’t. The good news was that it gave me more time to make it better and get a feedback by Steven R. Baker and other readers, so the book is much better for it!<p>= Foreword<p>Steven R. Baker wrote a foreword to Test Driving Rails. Steven is a testing legend, author of minitest&#x2F;mock and RSpec. The whole thing happened by accident on X when Steven got interested in my book. To my surprise Steven defaults to Minitest as well. If you want to know something about RSpec beginnings, you should go read his post History of RSpec[1]. Thanks Steven!<p>= Preview<p>You can read a small preview I cut out of the beginning of the book[2]<p>= SHOW HN<p>I am giving out 20% launch discount with code &quot;launch&quot;<p>[0] <a href="https:&#x2F;&#x2F;testdrivingrails.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;testdrivingrails.com&#x2F;</a> [1] <a href="https:&#x2F;&#x2F;stevenrbaker.com&#x2F;tech&#x2F;history-of-rspec.html" rel="nofollow">https:&#x2F;&#x2F;stevenrbaker.com&#x2F;tech&#x2F;history-of-rspec.html</a> [2] <a href="https:&#x2F;&#x2F;testdrivingrails.com&#x2F;preview.pdf" rel="nofollow">https:&#x2F;&#x2F;testdrivingrails.com&#x2F;preview.pdf</a> [3] <a href="https:&#x2F;&#x2F;strzibny.gumroad.com&#x2F;l&#x2F;testdrivingrails&#x2F;launch" rel="nofollow">https:&#x2F;&#x2F;strzibny.gumroad.com&#x2F;l&#x2F;testdrivingrails&#x2F;launch</a>

no comments

no comments