Measures Concepts
GitHub icon

TestML

TestML - Programming language

< >

TestML is a programming language created in 2018.

Source code:
git clone https://github.com/testml-lang/testml/
#1578on PLDB 6Years Old

Try now: Web

TestML is data driven software testing language that works with all popular programming languages and their favorite test frameworks. You write up your inputs and expected outputs and a simple assertion statement of how to get from one to the other. TestML takes care of the rest, giving you lots of testing functionality for the minimum input.


Example from the web:
#!/usr/bin/env testml "+ - {*a} + {*a} == {*c}": *a.add(*a) == *c "+ - {*c} - {*a} == {*a}": *c.sub(*a) == *a "+ - {*a} * 2 == {*c}": *a.mul(2) == *c "+ - {*c} / 2 == {*a}": *c.div(2) == *a "+ - {*a} * {*b} == {*d}": mul(*a, *b) == *d === Test Block 1 --- a: 3 --- c: 6 === Test Block 2 --- a: -5 --- b: 7 --- c: -10 --- d: -35

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout