diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-26 18:30:31 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-27 13:28:33 -0300 |
| commit | 03e401231972d7b4db0145a71ce74d5d18d1a901 (patch) | |
| tree | 10e59cd4fe0065ec87db0699965bb5e2f0436d74 /spec/new_version_spec.lua | |
| parent | 5b2e63e6b087bdf626dd7cef319d6ba29f5e197c (diff) | |
| download | luarocks-03e401231972d7b4db0145a71ce74d5d18d1a901.tar.gz luarocks-03e401231972d7b4db0145a71ce74d5d18d1a901.tar.bz2 luarocks-03e401231972d7b4db0145a71ce74d5d18d1a901.zip | |
tests: reorganize and speed up unit tests
Diffstat (limited to 'spec/new_version_spec.lua')
| -rw-r--r-- | spec/new_version_spec.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/new_version_spec.lua b/spec/new_version_spec.lua index d47cfd05..18271176 100644 --- a/spec/new_version_spec.lua +++ b/spec/new_version_spec.lua | |||
| @@ -3,8 +3,6 @@ local lfs = require("lfs") | |||
| 3 | local run = test_env.run | 3 | local run = test_env.run |
| 4 | local testing_paths = test_env.testing_paths | 4 | local testing_paths = test_env.testing_paths |
| 5 | 5 | ||
| 6 | test_env.unload_luarocks() | ||
| 7 | |||
| 8 | local extra_rocks = { | 6 | local extra_rocks = { |
| 9 | "/abelhas-1.1-1.rockspec", | 7 | "/abelhas-1.1-1.rockspec", |
| 10 | "/lpeg-${LPEG}.rockspec" | 8 | "/lpeg-${LPEG}.rockspec" |
| @@ -12,7 +10,7 @@ local extra_rocks = { | |||
| 12 | 10 | ||
| 13 | describe("luarocks new_version #integration", function() | 11 | describe("luarocks new_version #integration", function() |
| 14 | 12 | ||
| 15 | setup(function() | 13 | lazy_setup(function() |
| 16 | test_env.setup_specs(extra_rocks) | 14 | test_env.setup_specs(extra_rocks) |
| 17 | end) | 15 | end) |
| 18 | 16 | ||
| @@ -69,10 +67,11 @@ describe("luarocks new_version #integration", function() | |||
| 69 | end) | 67 | end) |
| 70 | 68 | ||
| 71 | describe("remote tests #mock", function() | 69 | describe("remote tests #mock", function() |
| 72 | setup(function() | 70 | lazy_setup(function() |
| 71 | test_env.setup_specs(extra_rocks, "mock") | ||
| 73 | test_env.mock_server_init() | 72 | test_env.mock_server_init() |
| 74 | end) | 73 | end) |
| 75 | teardown(function() | 74 | lazy_teardown(function() |
| 76 | test_env.mock_server_done() | 75 | test_env.mock_server_done() |
| 77 | end) | 76 | end) |
| 78 | it("with remote spec", function() | 77 | it("with remote spec", function() |
