| ▲ | Tc – Theodore Calvin's language-agnostic testing framework(github.com) | |||||||||||||
| 14 points by mooreds 4 hours ago | 4 comments | ||||||||||||||
| ▲ | roxolotl 3 hours ago | parent | next [-] | |||||||||||||
While I can’t really comment on how good this specific implementation is simple diff based testing frameworks like this dont get enough press. My first job involved working on an internal programming language. The test suite was just a ton of statements that were executed top down and their output was compared against a single file. Yes that’s a bit absurd but it worked remarkably well. If they’d bothered to add a bit more structure around it I think it would have been perfect. | ||||||||||||||
| ||||||||||||||
| ▲ | mmastrac 3 hours ago | parent | prev [-] | |||||||||||||
I wrote https://github.com/mmastrac/clitest because I needed a more complex testing harness for CLI tests that does something similar. It's not exactly the same, but it's definitely in the same universe. One-file-per testcase like `tc` does works, but it tends to fall apart a bit at large scale in my experience. | ||||||||||||||