diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2019-11-13 14:28:53 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-11-29 18:36:42 -0300 |
| commit | b4dfc787519e9d6df798812858e70778b7c5cf30 (patch) | |
| tree | 654f34151d88a7b3c27d9006bf665350184ed4e2 /spec/test_spec.lua | |
| parent | 51a2c592405c6c9fc006014973229ce1ac011d21 (diff) | |
| download | luarocks-b4dfc787519e9d6df798812858e70778b7c5cf30.tar.gz luarocks-b4dfc787519e9d6df798812858e70778b7c5cf30.tar.bz2 luarocks-b4dfc787519e9d6df798812858e70778b7c5cf30.zip | |
tests: simplify descriptions and set lazy setup/teardown
Diffstat (limited to 'spec/test_spec.lua')
| -rw-r--r-- | spec/test_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/test_spec.lua b/spec/test_spec.lua index 7a2399a9..ca1d5917 100644 --- a/spec/test_spec.lua +++ b/spec/test_spec.lua | |||
| @@ -38,7 +38,7 @@ describe("luarocks test #integration", function() | |||
| 38 | 38 | ||
| 39 | describe("busted backend", function() | 39 | describe("busted backend", function() |
| 40 | 40 | ||
| 41 | setup(function() | 41 | lazy_setup(function() |
| 42 | -- Try to cache rocks from the host system to speed up test | 42 | -- Try to cache rocks from the host system to speed up test |
| 43 | os.execute("luarocks pack busted") | 43 | os.execute("luarocks pack busted") |
| 44 | os.execute("luarocks pack lua_cliargs") | 44 | os.execute("luarocks pack lua_cliargs") |
| @@ -91,7 +91,7 @@ local test_command = require("luarocks.test.command") | |||
| 91 | describe("LuaRocks test #unit", function() | 91 | describe("LuaRocks test #unit", function() |
| 92 | local runner | 92 | local runner |
| 93 | 93 | ||
| 94 | setup(function() | 94 | lazy_setup(function() |
| 95 | cfg.init() | 95 | cfg.init() |
| 96 | fs.init() | 96 | fs.init() |
| 97 | runner = require("luacov.runner") | 97 | runner = require("luacov.runner") |
| @@ -99,7 +99,7 @@ describe("LuaRocks test #unit", function() | |||
| 99 | runner.tick = true | 99 | runner.tick = true |
| 100 | end) | 100 | end) |
| 101 | 101 | ||
| 102 | teardown(function() | 102 | lazy_teardown(function() |
| 103 | runner.shutdown() | 103 | runner.shutdown() |
| 104 | end) | 104 | end) |
| 105 | 105 | ||
