tests: busted: add config file, use --verbose by default (#2076)
This commit is contained in:
parent
288b7030f3
commit
1ab861ea3a
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
default = {
|
||||||
|
verbose = true,
|
||||||
|
helper = "spec/preload.lua",
|
||||||
|
lpath = "lib/?.lua;lib/?/init.lua;spec/?.lua",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
|
@ -412,8 +412,7 @@ a_find_program(BUSTED_EXECUTABLE busted FALSE)
|
||||||
if(BUSTED_EXECUTABLE)
|
if(BUSTED_EXECUTABLE)
|
||||||
# Keep the arguments in sync with the version below!
|
# Keep the arguments in sync with the version below!
|
||||||
add_custom_target(check-unit
|
add_custom_target(check-unit
|
||||||
${BUSTED_EXECUTABLE} "--helper=${CMAKE_SOURCE_DIR}/spec/preload.lua"
|
${BUSTED_EXECUTABLE}
|
||||||
"--lpath=lib/?.lua;lib/?/init.lua;spec/?.lua"
|
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
COMMENT "Running unit tests"
|
COMMENT "Running unit tests"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
@ -421,9 +420,7 @@ if(BUSTED_EXECUTABLE)
|
||||||
|
|
||||||
# Same as above, but with --coverage argument
|
# Same as above, but with --coverage argument
|
||||||
add_custom_target(check-unit-coverage
|
add_custom_target(check-unit-coverage
|
||||||
${BUSTED_EXECUTABLE} "--helper=${CMAKE_SOURCE_DIR}/spec/preload.lua"
|
${BUSTED_EXECUTABLE} "--coverage"
|
||||||
"--lpath=lib/?.lua;lib/?/init.lua;spec/?.lua"
|
|
||||||
"--coverage"
|
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
COMMENT "Running unit tests under LuaCov"
|
COMMENT "Running unit tests under LuaCov"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
Loading…
Reference in New Issue