File tree Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 62
62
run : rojo build default.project.json -o test.rbxl
63
63
64
64
- name : Run tests
65
- run : run-in-roblox --place .\\ test.rbxl --script .\\test\\RunTests.server .lua > test-out.txt
65
+ run : run-in-roblox --place test.rbxl --script ci .lua > test-out.txt
66
66
continue-on-error : true
67
67
timeout-minutes : 5
68
68
Original file line number Diff line number Diff line change @@ -4,3 +4,5 @@ packages/*/Packages
4
4
/Packages
5
5
/test /Packages
6
6
/test /modules
7
+ * .rbxl
8
+ * .rbxl.lock
Original file line number Diff line number Diff line change
1
+ print (" Running unit tests..." )
2
+
3
+ local TestService = game :GetService (" TestService" )
4
+ local TestEZ = require (TestService .Packages .TestEZ )
5
+
6
+ local tests = {}
7
+ for _ ,testFolder in ipairs (TestService .modules :GetChildren ()) do
8
+ local name = testFolder .Name :match (" (.+)_test$" )
9
+ local module = testFolder :FindFirstChild (name )
10
+ if module then
11
+ table.insert (tests , module )
12
+ else
13
+ print (" Failed to find module within " .. testFolder .Name )
14
+ end
15
+ end
16
+
17
+ TestEZ .TestBootstrap :run (tests )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments