aboutsummaryrefslogtreecommitdiff
path: root/lua
AgeCommit message (Collapse)AuthorFilesLines
2017-07-13test/lua: adapt tests to changes in Lua APIMarc André Tanner2-51/+51
2017-04-08test: update tests to for new line ending handlingMarc André Tanner2-5/+1
2017-03-15test/lua: update READMEMarc André Tanner1-10/+7
2017-03-05test/lua: fix luacheck warningsMarc André Tanner4-7/+7
2017-03-04test/lua: convert tests to busted infrastructureMarc André Tanner32-457/+198
2017-03-03test/lua: add infrastructure for busted based unit testsMarc André Tanner4-19/+133
2017-02-14Skip tests if Lua support is not compiled inMarc André Tanner1-0/+5
2017-01-20test/lua: adapt basic_map test to new newline behaviorMarc André Tanner1-5/+6
2017-01-12tests: make :help output actually visibleMarc André Tanner1-1/+1
The problem is that :qall in the win open event would immediately close the window before anyting gets executed.
2016-12-30Revert "Make sure that info messages are printed before test case is run"Marc André Tanner1-3/+2
This reverts commit 8a366cebda597e960f1f49e245785f8fdedff0a6. Travis is strange.
2016-12-28Make sure that info messages are printed before test case is runMarc André Tanner1-2/+3
Useful for hanging tests also redirect stdout to /dev/null for better output on Travis.
2016-12-19test: ignore custom visrc.lua configurationMarc André Tanner1-2/+1
2016-12-08test/lua: update to changes in Lua APIMarc André Tanner1-5/+5
2016-11-17test: use :qall! to terminate testsMarc André Tanner1-1/+1
This should make sure that vis always terminates and never hangs waiting for further input. Lua errors in particular cause a new window/file to be displayed showing a detailed error message. Previously only this internal file was closed but the original file remained open and prevented vis from exiting.
2016-11-16test/lua: redirect stdin and stderr to /dev/nullMarc André Tanner1-1/+1
Redirecting stdin mimics the environment on Travis CI. Redirecting stderr should give a nicer test list output, albeit some useful messages might get lost.
2016-11-15test/lua: make tests more robust, print Lua include pathsMarc André Tanner3-8/+9
2016-11-13test/lua: build vis binary if necessaryMarc André Tanner1-1/+5
2016-11-13test/lua: print :help output and distinguish between fail/errorMarc André Tanner1-1/+2
2016-11-11test/lua: adapt to different line ending type returned by Lua APIMarc André Tanner2-2/+2
2016-05-16test/lua: fix test for invalid cursor positionMarc André Tanner2-8/+12
2016-05-09Improve Cygwin supportMarc André Tanner1-2/+2
2016-05-03Add tests for creating mappings and using feedkeysJosh Wainwright3-0/+28
Tests `vis:map()` and `vis:feedkeeys()`
2016-05-03Add another test for cursor positioningJosh Wainwright2-9/+16
Confirming `cursor:to(line,col)` implies `cursor.line == line` and `cursor.col == col`
2016-04-27test/lua: update tests to match new cursor positioning codeMarc André Tanner1-2/+2
cursor:to(line,col) now implies cursor.line == line and cursor.col == col
2016-04-26test/lua: silenced make cleanMarc André Tanner1-1/+1
2016-04-26test/lua: update basic_file.ref to match number of tests runMarc André Tanner1-3/+0
2016-04-26test/lua: make test.sh executable againMarc André Tanner1-0/+0
2016-04-26Add test number information to command_register tests for easier debuggingJosh Wainwright2-20/+24
2016-04-26Remove .status files, just use .ref and .out pairsJosh Wainwright11-27/+46
2016-04-26Change shebang to sh and add quotes to variables in scriptJosh Wainwright1-10/+10
2016-04-26Add tests for vis:command_register()Josh Wainwright3-0/+82
2016-04-26test.sh: silently compare filesJosh Wainwright1-1/+1
2016-04-21Add test for file that does not existJosh Wainwright2-1/+16
2016-04-21Use dofile() rather than require() to run lua test codeJosh Wainwright1-3/+3
2016-04-21Add executable permission to test.shJosh Wainwright1-0/+0
2016-04-21Update tests README and add lua tests README filesJosh Wainwright1-0/+21
2016-04-21Show vis version when running testsJosh Wainwright1-0/+3
2016-04-21Quit vis from within test visrc.luaJosh Wainwright2-8/+4
2016-04-21Use .status files instead of .true files and write error to .err fileJosh Wainwright5-12/+13
2016-04-20Allow running individual tests from makefileJosh Wainwright1-0/+5
2016-04-20Split test lua code into individual test.lua filesJosh Wainwright10-145/+133
2016-04-20Remove stackdump reference from makefile and make name uppercaseJosh Wainwright1-1/+1
2016-04-20Add first set of basic lua api testsJosh Wainwright13-0/+368
There are two types of lua tests here: 1. Tests are formed from a <test>.in, <test>.ref and <test>.out triplet. The <test>.in file is opened by vis, some operatations are performed and the modified file is written to <test>.out. The new <test>.out is compared to <test>.ref and the test passes if they are identical. 2. Tests are formed from a single <test>.true file. This file is created by the lua code in the test. It contains a single line per test case, this single line should be `true` if the test case passed. The <test>.true file is checked to ensure it contains only `true` lines and if so, the test passes.