News for hackers. Stuff that matters.
Re:Cosmic Text: Pure Rust multi-line text handling by boxed on Friday March 03, 2023 @02:43AM (#35006895)
You might want to check out mutation testing. It's not the same at all obviously, but it has some advantages that it's a finite process (you know if you're done), and it's often fairly easy to write tests when you get a mutant. It's a much less cognitively demanding process while at the same time finding a lot of problems with your test suite.
Re:Cosmic Text: Pure Rust multi-line text handling by MrJohz on Saturday March 04, 2023 @04:37PM (#35024739)
I really like the idea of mutation testing, but I've never found a situation where I've got it to work well. Either the project just didn't have the test support needed to make it work, or the mutation toolkit wasn't mature enough, or it didn't work with the specific tools I was already using. When you suggested it, I had a go again with a project I'm working on using Vitest and Striker, but unfortunately Striker just doesn't work with Vitest yet.

I'd definitely love to use it more though, it's one of those things I come back to every so often, unfortunately thus far without much success.