diff options
-rw-r--r-- | .busted | 2 | ||||
-rw-r--r-- | .travis.yml | 9 | ||||
-rw-r--r-- | appveyor.yml | 3 | ||||
-rw-r--r-- | luarocks-dev-1.rockspec | 1 |
4 files changed, 9 insertions, 6 deletions
@@ -1,6 +1,6 @@ | |||
1 | return { | 1 | return { |
2 | default = { | 2 | default = { |
3 | output = "gtest", | 3 | output = "htest", |
4 | verbose = true, | 4 | verbose = true, |
5 | ["exclude-pattern"] = "sum_spec", -- do not run spec files inside fixture | 5 | ["exclude-pattern"] = "sum_spec", -- do not run spec files inside fixture |
6 | helper = "spec.util.test_env", | 6 | helper = "spec.util.test_env", |
diff --git a/.travis.yml b/.travis.yml index aa81ff7f..f5b6bb37 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -19,8 +19,8 @@ smoke_script: &smoke_script | |||
19 | - ./smoke_test.sh luarocks-$BRANCH.tar.gz | 19 | - ./smoke_test.sh luarocks-$BRANCH.tar.gz |
20 | 20 | ||
21 | unit_script: &unit_script | 21 | unit_script: &unit_script |
22 | - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" | 22 | - busted -o htest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" |
23 | - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" | 23 | - busted -o htest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" |
24 | 24 | ||
25 | integration_script: &integration_script | 25 | integration_script: &integration_script |
26 | - lua -v | 26 | - lua -v |
@@ -28,8 +28,8 @@ integration_script: &integration_script | |||
28 | - ./configure --with-lua=lua_install | 28 | - ./configure --with-lua=lua_install |
29 | - ./makedist dev | 29 | - ./makedist dev |
30 | - ./smoke_test.sh luarocks-dev.tar.gz | 30 | - ./smoke_test.sh luarocks-dev.tar.gz |
31 | - busted -o gtest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" | 31 | - busted -o htest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" |
32 | - busted -o gtest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" | 32 | - busted -o htest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" |
33 | 33 | ||
34 | jobs: | 34 | jobs: |
35 | include: | 35 | include: |
@@ -148,6 +148,7 @@ before_install: | |||
148 | install: | 148 | install: |
149 | - if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi | 149 | - if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi |
150 | - if [ ! -f lua_install/bin/luacov ]; then luarocks install cluacov; fi | 150 | - if [ ! -f lua_install/bin/luacov ]; then luarocks install cluacov; fi |
151 | - luarocks install busted-htest | ||
151 | 152 | ||
152 | after_success: | 153 | after_success: |
153 | - luacov -c $TRAVIS_BUILD_DIR/testrun/luacov.config | 154 | - luacov -c $TRAVIS_BUILD_DIR/testrun/luacov.config |
diff --git a/appveyor.yml b/appveyor.yml index 6a4f9417..7011c80c 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -90,9 +90,10 @@ before_build: | |||
90 | build_script: | 90 | build_script: |
91 | - IF NOT EXIST lua_install-%LUAV%\bin\busted.bat ( luarocks install busted 1> NUL 2> NUL ) | 91 | - IF NOT EXIST lua_install-%LUAV%\bin\busted.bat ( luarocks install busted 1> NUL 2> NUL ) |
92 | - IF NOT EXIST lua_install-%LUAV%\bin\luacov.bat ( luarocks install cluacov 1> NUL 2> NUL ) | 92 | - IF NOT EXIST lua_install-%LUAV%\bin\luacov.bat ( luarocks install cluacov 1> NUL 2> NUL ) |
93 | - luarocks install busted-htest 1> NUL 2> NUL | ||
93 | 94 | ||
94 | test_script: | 95 | test_script: |
95 | - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install-%LUAV%,appveyor,%COMPILER% %FILES% | 96 | - busted -o htest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install-%LUAV%,appveyor,%COMPILER% %FILES% |
96 | 97 | ||
97 | after_test: | 98 | after_test: |
98 | - pip install codecov | 99 | - pip install codecov |
diff --git a/luarocks-dev-1.rockspec b/luarocks-dev-1.rockspec index a1f30ef4..c7933042 100644 --- a/luarocks-dev-1.rockspec +++ b/luarocks-dev-1.rockspec | |||
@@ -22,6 +22,7 @@ description = { | |||
22 | } | 22 | } |
23 | test_dependencies = { | 23 | test_dependencies = { |
24 | "luacov", | 24 | "luacov", |
25 | "busted-htest", | ||
25 | } | 26 | } |
26 | test = { | 27 | test = { |
27 | type = "busted", | 28 | type = "busted", |