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.

RSpec Is for the Literate (2011)

47 pointsby NAR8789over 3 years ago

1 comment

fishtoasterover 3 years ago
I interact with &quot;Rspec as documentation&quot; with some frequency when referring to the docs for rspec itself on Relish:<p><a href="https:&#x2F;&#x2F;relishapp.com&#x2F;rspec&#x2F;rspec-core&#x2F;docs&#x2F;helper-methods&#x2F;arbitrary-helper-methods" rel="nofollow">https:&#x2F;&#x2F;relishapp.com&#x2F;rspec&#x2F;rspec-core&#x2F;docs&#x2F;helper-methods&#x2F;a...</a><p>To be honest, I find them pretty hard to read and unhelpful. If the four types of documentation are tutorials, how-to guides, concept discussion, and reference, these rspec-as-documentation docs occupy an uncomfortable position between how-to guides and reference: they&#x27;re neither detailed enough to act as a reference, nor narrative enough to act as a guide to solving any problem. They&#x27;re slower to parse quickly than a equivalent prose and more complex than an equivalent code sample with a description.<p>They probably offer some value - I suppose I&#x27;d rather have literate tests than not, but they should be <i>in addition</i> to proper documentation, not <i>instead of</i>.<p>(disclaimer: I only really interact with that one example - rspec on relish - and I may be conflating flaws in that example with flaws in the whole technique)
评论 #29886308 未加载
评论 #29886075 未加载