← All projects
Project record1 mention
Originally shared on Hacker News

Accordant

A .NET framework for writing executable specifications that capture API contracts as code. It validates that implementations behave according to the contract, failing immediately when they don't, and uses the spec to mechanically explore a system's state space and generate test sequences. It has been used to model complex distributed real-world systems involving async processes, concurrency, retries, and crash consistency, and pairs well with deterministic simulation testing. Developed at Microsoft and open sourced, it descends from the Spec#/SpecExplorer and NModel line of model-based testing work.

Last shared
01 / The problem

What it addresses

API behavioral rules and contracts are usually never written down in one place, and documentation drifts from the implementation.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Accordant

    A .NET framework for writing executable specifications that capture API contracts as code. It validates that implementations behave according to the contract, failing immediately when they don't, and uses the spec to mechanically explore a system's state space and generate test sequences. It has been used to model complex distributed real-world systems involving async processes, concurrency, retries, and crash consistency, and pairs well with deterministic simulation testing. Developed at Microsoft and open sourced, it descends from the Spec#/SpecExplorer and NModel line of model-based testing work.

    Problem: API behavioral rules and contracts are usually never written down in one place, and documentation drifts from the implementation.

    Posted by @inaseer · Original source ↗

    Source text · @inaseer · · Source ↗

    I've been working on a framework for writing executable specs in .NET called Accordant, developed at Microsoft and open sourced recently.