mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
Make script exit with code 1 when tests fail
This commit is contained in:
parent
7f73ae80dc
commit
a894313a4b
3 changed files with 20 additions and 3 deletions
|
|
@ -8,4 +8,12 @@ local Settings = require(Rojo.Plugin.Settings)
|
|||
Settings:set("logLevel", "Trace")
|
||||
Settings:set("typecheckingEnabled", true)
|
||||
|
||||
require(Rojo.Plugin.runTests)(TestEZ)
|
||||
local results = require(Rojo.Plugin.runTests)(TestEZ)
|
||||
|
||||
-- Roblox's Luau execution gets mad about cyclical tables.
|
||||
-- Rather than making TestEZ not do that, we just send back the important info.
|
||||
return {
|
||||
failureCount = results.failureCount,
|
||||
successCount = results.successCount,
|
||||
skippedCount = results.skippedCount,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue