From 668cef748146b8cbc7540c23d8339499390c9ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 15 Mar 2017 21:18:26 +0100 Subject: test/lua: update README --- lua/README.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'lua/README.md') diff --git a/lua/README.md b/lua/README.md index 4f8a6fb..5b9a1e6 100644 --- a/lua/README.md +++ b/lua/README.md @@ -1,13 +1,10 @@ -Tests for vis specific lua api ------------------------------- +Unit Test for Vis' Lua API +-------------------------- -Tests are formed from a `.in`, `.ref` and `.out` triplet. -The `.in` file is opened by vis, some operatations are performed and the -modified file is written to `.out`. The new `.out` is compared to -`.ref` and the test passes if they are identical. +The tests use the [busted unit testing framework](https://olivinelabs.com/busted/). -The shell script `test.sh` looks for a file with extension `.in`, eg `test.in`, -and opens it in vis. The corresponding lua file, `test.lua`, is executed and is -expected to create a `test.out` file. +Each `*.lua` file is sourced from a new `vis` instance which loads the +correspending `*.in` file. -Type `make` to run all tests. +Use the `test.sh` shell script to run an individual test or type `make` +to run all tests. -- cgit v1.2.3