Skip to content

Commit

Permalink
Update mineunit (#133)
Browse files Browse the repository at this point in the history
* Switch to mineunit for regression tests

* Update mineunit

Co-authored-by: SX <sx@minetest>
  • Loading branch information
S-S-X and SX committed Nov 24, 2020
1 parent fa0c79e commit 4acb80e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 92 deletions.
8 changes: 4 additions & 4 deletions technic/spec/building_spec.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
dofile("spec/test_helpers.lua")
dofile("spec/fixtures/mineunit/init.lua")
--[[
Technic network unit tests.
Execute busted at technic source directory.
--]]

-- Load fixtures required by tests
fixture("mineunit/core")
fixture("mineunit/player")
fixture("mineunit/protection")
mineunit("core")
mineunit("player")
mineunit("protection")

fixture("pipeworks")
fixture("network")
Expand Down
2 changes: 1 addition & 1 deletion technic/spec/fixtures/mineunit
3 changes: 3 additions & 0 deletions technic/spec/fixtures/pipeworks.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@

_G.pipeworks = {}
_G.pipeworks.button_label = ""
_G.pipeworks.fs_helpers = {}
_G.pipeworks.fs_helpers.cycling_button = function(...) return "" end
8 changes: 4 additions & 4 deletions technic/spec/network_spec.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
dofile("spec/test_helpers.lua")
dofile("spec/fixtures/mineunit/init.lua")
--[[
Technic network unit tests.
Execute busted at technic source directory.
--]]

-- Load fixtures required by tests
fixture("mineunit/core")
fixture("mineunit/player")
fixture("mineunit/protection")
mineunit("core")
mineunit("player")
mineunit("protection")

fixture("pipeworks")
fixture("network")
Expand Down
8 changes: 4 additions & 4 deletions technic/spec/supply_converter_spec.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
dofile("spec/test_helpers.lua")
dofile("spec/fixtures/mineunit/init.lua")
--[[
Technic network unit tests.
Execute busted at technic source directory.
--]]

-- Load fixtures required by tests
fixture("mineunit/core")
fixture("mineunit/player")
fixture("mineunit/protection")
mineunit("core")
mineunit("player")
mineunit("protection")

fixture("pipeworks")
fixture("network")
Expand Down
79 changes: 0 additions & 79 deletions technic/spec/test_helpers.lua

This file was deleted.

0 comments on commit 4acb80e

Please sign in to comment.