use busted-htest

master
Hisham Muhammad 2020-04-21 21:14:16 -03:00
parent af03c34278
commit be97d188a2
4 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
return {
default = {
output = "gtest",
output = "htest",
verbose = true,
["exclude-pattern"] = "sum_spec", -- do not run spec files inside fixture
helper = "spec.util.test_env",

View File

@ -19,8 +19,8 @@ smoke_script: &smoke_script
- ./smoke_test.sh luarocks-$BRANCH.tar.gz
unit_script: &unit_script
- busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
- busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
- busted -o htest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
- busted -o htest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
integration_script: &integration_script
- lua -v
@ -28,8 +28,8 @@ integration_script: &integration_script
- ./configure --with-lua=lua_install
- ./makedist dev
- ./smoke_test.sh luarocks-dev.tar.gz
- busted -o gtest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
- busted -o gtest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
- busted -o htest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
- busted -o htest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
jobs:
include:
@ -148,6 +148,7 @@ before_install:
install:
- if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi
- if [ ! -f lua_install/bin/luacov ]; then luarocks install cluacov; fi
- luarocks install busted-htest
after_success:
- luacov -c $TRAVIS_BUILD_DIR/testrun/luacov.config

View File

@ -90,9 +90,10 @@ before_build:
build_script:
- IF NOT EXIST lua_install-%LUAV%\bin\busted.bat ( luarocks install busted 1> NUL 2> NUL )
- IF NOT EXIST lua_install-%LUAV%\bin\luacov.bat ( luarocks install cluacov 1> NUL 2> NUL )
- luarocks install busted-htest 1> NUL 2> NUL
test_script:
- busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install-%LUAV%,appveyor,%COMPILER% %FILES%
- busted -o htest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install-%LUAV%,appveyor,%COMPILER% %FILES%
after_test:
- pip install codecov

View File

@ -22,6 +22,7 @@ description = {
}
test_dependencies = {
"luacov",
"busted-htest",
}
test = {
type = "busted",