From 03e401231972d7b4db0145a71ce74d5d18d1a901 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 26 Feb 2024 18:30:31 -0300 Subject: tests: reorganize and speed up unit tests --- spec/write_rockspec_spec.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'spec/write_rockspec_spec.lua') 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 describe("luarocks write_rockspec tests #integration", function() - before_each(function() + lazy_setup(function() test_env.setup_specs() end) @@ -20,7 +20,7 @@ describe("luarocks write_rockspec tests #integration", function() describe("from #git #unix", function() local git - setup(function() + lazy_setup(function() git = git_repo.start() end) @@ -79,10 +79,11 @@ describe("luarocks write_rockspec tests #integration", function() describe("from tarball #mock", function() - setup(function() + lazy_setup(function() + test_env.setup_specs(nil, "mock") test_env.mock_server_init() end) - teardown(function() + lazy_teardown(function() test_env.mock_server_done() end) -- cgit v1.2.3-55-g6feb