Running individual Bun tests with Zed tasks
I’m a big fan of the Zed editor. It’s been my daily driver
(when I’ve had a choice) for around a year now. It runs like butter on an
ancient nine-year-old Dell XPS that’s been my Arch Linux hobby machine for a while.
Back when I was a Windows guy coding in Visual Studio, one of my favourite tools
was TestDriven.NET, an open source test runner by Jamie Cansdale. A superpower
of TestDriven.NET was its ability to run unit tests, or any function, under the
cursor. It was a simple but immensely powerful
tool.
I was musing that something similar for Zed would be a fantastic addition. There
didn’t appear to be an extension that did what I wanted, and I even considered
getting Claude to attempt to write such an extension in Rust, but while
prompting Claude for how it could work, it suggested an alternative path, Zed
Tasks.