Home / Companies / MongoDB / Blog / Post Details
Content Deep Dive

Conformance Checking at MongoDB: Testing That Our Code Matches Our TLA+ Specs

Blog post from MongoDB

Post Details
Company
Date Published
Author
A. Jesse Jiryu Davis
Word Count
3,705
Company Posts That Month
24
Language
English
Hacker News Points
110
Post removed?
No
Summary

The author of this text is a developer at MongoDB who experimented with conformance checking techniques to ensure that their code matches their formal specifications written in TLA+. Conformance checking involves testing whether the implementation's behaviors conform to the specification. The author attempted two approaches: trace-checking and test-case generation. Trace-checking involved generating execution traces from the implementation and checking if they match the spec, while test-case generation started with a spec and generated tests that force the implementation to follow specific behaviors. The author found that both techniques can be challenging but also worthwhile, especially when done correctly. In the past five years, there has been progress in conformance checking techniques, including new tools and approaches for language-specific testing. The author is excited about growing interest in conformance checking and hopes it will lead to standard tools that help engineers keep their code and specs in sync.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Observability 2 1,870 422 128 +10%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.