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/write_rockspec_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/write_rockspec_spec.lua')
| -rw-r--r-- | spec/write_rockspec_spec.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua index 5f9faa6e..abd5c80b 100644 --- a/spec/write_rockspec_spec.lua +++ b/spec/write_rockspec_spec.lua | |||
| @@ -5,7 +5,7 @@ local run = test_env.run | |||
| 5 | 5 | ||
| 6 | describe("luarocks write_rockspec tests #integration", function() | 6 | describe("luarocks write_rockspec tests #integration", function() |
| 7 | 7 | ||
| 8 | before_each(function() | 8 | lazy_setup(function() |
| 9 | test_env.setup_specs() | 9 | test_env.setup_specs() |
| 10 | end) | 10 | end) |
| 11 | 11 | ||
| @@ -20,7 +20,7 @@ describe("luarocks write_rockspec tests #integration", function() | |||
| 20 | describe("from #git #unix", function() | 20 | describe("from #git #unix", function() |
| 21 | local git | 21 | local git |
| 22 | 22 | ||
| 23 | setup(function() | 23 | lazy_setup(function() |
| 24 | git = git_repo.start() | 24 | git = git_repo.start() |
| 25 | end) | 25 | end) |
| 26 | 26 | ||
| @@ -79,10 +79,11 @@ describe("luarocks write_rockspec tests #integration", function() | |||
| 79 | 79 | ||
| 80 | describe("from tarball #mock", function() | 80 | describe("from tarball #mock", function() |
| 81 | 81 | ||
| 82 | setup(function() | 82 | lazy_setup(function() |
| 83 | test_env.setup_specs(nil, "mock") | ||
| 83 | test_env.mock_server_init() | 84 | test_env.mock_server_init() |
| 84 | end) | 85 | end) |
| 85 | teardown(function() | 86 | lazy_teardown(function() |
| 86 | test_env.mock_server_done() | 87 | test_env.mock_server_done() |
| 87 | end) | 88 | end) |
| 88 | 89 | ||
