Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

TestML

< >

TestML is a programming language created in 2018.

#2045on PLDB 6Years Old
Download source code:
git clone https://github.com/testml-lang/testml/
Homepage · REPL · Source Code

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

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v164.7.0