HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dethstrobe

no profile record

Submissions

Narrative-Driven Development: BDD+TDD+Living Documentation in One Workflow

test2doc.com
1 points·by dethstrobe·5개월 전·0 comments

RedwoodSDK Tutorial with Test2Doc

test2doc.com
1 points·by dethstrobe·6개월 전·1 comments

comments

dethstrobe
·4개월 전·discuss
I've been using RWSDK since it was in v0 last year. I really like how simple and elegant it is.

And now with v1 there are some really logical patterns that I really enjoy.

Like returning Responses from server actions and then the framework automatically handles things like redirecting. https://docs.rwsdk.com/core/react-server-components/#returni...

Like it always felt a bit like a hack needing to add a client component to handle redirects after submitting a form. But RWSDK gives a pretty elegant solution.

And that's just one of many intuitive features of RWSDK. I also like the `useSyncedState` hook they made that makes it very trivial to make real time communication between clients, for something like say, a chat room. https://docs.rwsdk.com/experimental/realtime/

I also dogfooded a reporter I've been working on with the initial v0 tutorial for this. Which then I rewrote that tutorial to demonstrate TDD principles for the v1-beta (to my knowledge there are no breaking changes between v1-beta and the final release, but I'll be going through later to confirm that.) https://www.test2doc.com/docs/tutorial-1
dethstrobe
·6개월 전·discuss
So last year the Redwood team, after launching v0 also launched a tutorial to built a non-trivial webapp using their framework. But they're now getting ready for v1 and introduced a few breaking changes so made their tutorial obsolete.

I dogfooded my Playwright reporter on this tutorial, so figured I'd rewrite it for v1 and I wanted to make a tutorial to teach test-driven development too, since I seemed to see a few devs say that testing was a reason they weren't interested in my reporter that generates docs from tests.

Anyway, I completed it earlier this week.

So if you want to learn RedwoodSDK, learn a bit more about Playwright testing, and wanting to learn how you can turn your tests in to living documentation, give it a shot.

Any feedback would be much appreciated.