BEN GREWELL
01PROJECT // SHIPPED

DART

YAML-driven integration test runner for distributed systems — spins up nodes across SSH, Docker, LXD and VMs, then drives and evaluates them.

DART (Dynamic Assessment & Regression Toolkit) describes a whole test topology — nodes, setup steps, tests and teardown — in one YAML suite, and runs it end to end.

DART is in daily use as the integration test harness across several projects.

yamlsuite.yaml
suite: my service works
nodes:
  - name: box
    type: docker
    options: { image: myservice:latest }
tests:
  - name: the binary runs
    node: box
    type: execute
    options:
      command: /usr/local/bin/myservice --version
      evaluate:
        exit_code: 0
        regex: "v[0-9]+\\.[0-9]+"
TTYdart — running the suite
dart -c suite.yaml
[+] Running test setup
  [ box ] running setup ... done
[+] Running tests
  00001: [ box ] the binary runs ... passed

[+] Running test teardown
  [ box ] running teardown ... done

[+] Results
  Pass: 00001
  Fail: 00000
  Time: 1.2s
Status
shipped
Year
2024
Role
Author
Stack
Go · LXD · Docker · YAML
← All projects