This feature easily allows cases to be skipped, or only ran conditionally. For example, if your behavior is intended (or expected) to be different across JIT versions, you could do:
return {
groupName = "isrunning action",
cases = {
{
name = "Is not valid on 32bit versions",
when = jit.version == "LuaJIT 2.0.4",
func = function()
expect( collectgarbage, "isrunning" ).to.errWith( [[bad argument #1 to '?' (invalid option 'isrunning')]] )
end
},
{
name = "Is valid on x86-64",
when = jit.version == "LuaJIT 2.1.0-beta3",
func = function()
expect( collectgarbage, "isrunning" ).to.succeed()
expect( collectgarbage( "isrunning" ) ).to.beA( "boolean" )
end
},
}
}
This also adds a new classification of output at the end; SKIP
This feature easily allows cases to be skipped, or only ran conditionally. For example, if your behavior is intended (or expected) to be different across JIT versions, you could do:
This also adds a new classification of output at the end;![image](https://github.com/CFC-Servers/GLuaTest/assets/7936439/166b4bed-c899-498b-9dee-31750b963c9d)
SKIP