mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 22:56:02 +00:00
plugin: Unify test running code
This commit is contained in:
@@ -28,5 +28,5 @@ end)
|
|||||||
if Config.isDevBuild then
|
if Config.isDevBuild then
|
||||||
local TestEZ = require(script.Parent.TestEZ)
|
local TestEZ = require(script.Parent.TestEZ)
|
||||||
|
|
||||||
TestEZ.TestBootstrap:run({script})
|
require(script.runTests)(TestEZ)
|
||||||
end
|
end
|
||||||
5
plugin/src/runTests.lua
Normal file
5
plugin/src/runTests.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
return function(TestEZ)
|
||||||
|
local Rojo = script.Parent.Parent
|
||||||
|
|
||||||
|
TestEZ.TestBootstrap:run({ Rojo.Plugin, Rojo.Http, Rojo.Log })
|
||||||
|
end
|
||||||
@@ -12,7 +12,7 @@ if setDevSettings then
|
|||||||
DevSettings:createTestSettings()
|
DevSettings:createTestSettings()
|
||||||
end
|
end
|
||||||
|
|
||||||
TestEZ.TestBootstrap:run({ Rojo.Plugin, Rojo.Http, Rojo.Log })
|
require(Rojo.Plugin.runTests)(TestEZ)
|
||||||
|
|
||||||
if setDevSettings then
|
if setDevSettings then
|
||||||
DevSettings:resetValues()
|
DevSettings:resetValues()
|
||||||
|
|||||||
Reference in New Issue
Block a user