functests: Check logs in lua code

It is otherwise impossible to determine which test failed sanitizer/valgrind
check. test/functional/helpers.lua module return was changed so that tests which
do not provide after_each function to get new check will automatically fail.
This commit is contained in:
ZyX
2016-04-24 02:53:11 +03:00
parent a160590e40
commit ff470bb853
212 changed files with 362 additions and 287 deletions

View File

@@ -1,5 +1,5 @@
local lfs = require('lfs')
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local clear, execute, eval, eq = helpers.clear, helpers.execute, helpers.eval, helpers.eq
before_each(function()

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local funcs = helpers.funcs
local meths = helpers.meths

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local funcs = helpers.funcs
local eval, eq = helpers.eval, helpers.eq

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local eq = helpers.eq
local eval = helpers.eval
local clear = helpers.clear

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local eq = helpers.eq
local funcs = helpers.funcs

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local clear, eq, ok = helpers.clear, helpers.eq, helpers.ok
local neq, execute, funcs = helpers.neq, helpers.execute, helpers.funcs
local reltime, reltimestr, reltimefloat = funcs.reltime, funcs.reltimestr, funcs.reltimefloat

View File

@@ -1,5 +1,5 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local nvim, eq, neq, eval = helpers.nvim, helpers.eq, helpers.neq, helpers.eval
local clear, funcs, meths = helpers.clear, helpers.funcs, helpers.meths
local os_name = helpers.os_name

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local exc_exec = helpers.exc_exec
local execute = helpers.execute
local funcs = helpers.funcs

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local eq = helpers.eq
local command = helpers.command

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local ok, feed, eq, eval = helpers.ok, helpers.feed, helpers.eq, helpers.eval
local source, nvim_async, run = helpers.source, helpers.nvim_async, helpers.run

View File

@@ -1,4 +1,4 @@
local helpers = require('test.functional.helpers')
local helpers = require('test.functional.helpers')(after_each)
local clear, eval, eq = helpers.clear, helpers.eval, helpers.eq
local command = helpers.command
describe('v:event', function()