HACKER Q&A
📣 floitsch

Good language-agnostic test suites?


Are there any good language-agnostic test suites for common protocols and RFCs?

Any new programming language needs to implement libraries for things like JSON, Yaml, HTTP, MQTT, TLS, URL-parsing, etc.

Are there some good test-suites that explicitly test correct behavior for the most important RFCs? Maybe even an online service or docker container?

Is there an implementation that made these tests in such a way that they can be easily adapted for other programming languages?


  👤 verdverm Accepted Answer ✓
The Go compiler has a really interesting, black box testing tool called "testscript"

You can find an extracted, installable version here: https://github.com/rogpeppe/go-internal/tree/master/cmd/test...

For test cases, I would look to libraries in any language that has them in an easy to copy format