doc: Add a generic template for text only tests
This commit is contained in:
parent
adebef629b
commit
08df8fbf03
|
@ -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)()
|
Loading…
Reference in New Issue