doc: Add a generic template for text only tests

This commit is contained in:
Emmanuel Lepage Vallee 2016-05-17 00:58:33 -04:00
parent adebef629b
commit 08df8fbf03
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
local file_path, _, luacovpath = ...
-- Set the global shims
-- luacheck: globals awesome root tag screen client mouse drawin
awesome = require( "awesome" )
root = require( "root" )
tag = require( "tag" )
screen = require( "screen" )
client = require( "client" )
mouse = require( "mouse" )
drawin = require( "drawin" )
-- If luacov is available, use it. Else, do nothing.
pcall(function()
require("luacov.runner")(luacovpath)
end)
-- Execute the test
loadfile(file_path)()