evo-lua / evo-legacy

[Obsoleted Prototype] Highly experimental Lua runtime environment built on Luvi (libuv + LuaJIT)
https://evo-lua.github.io
0 stars 0 forks source link

Add testing primitives for BDD-style tests #51

Closed rdw-software closed 2 years ago

rdw-software commented 2 years ago

Goals:

rdw-software commented 2 years ago

Failing tests exit with a nonzero code to enable testing as part of the CI pipeline

This is best handled by wrapping the TestSuite:Run() method with a standard assert. It will return a status flag indicating whether any scenario has failed. I guess that's good enough and doesn't require further hacking stuff in that isn't otherwise useful...

rdw-software commented 2 years ago

The documented usage example is especially tested

I'm checking this off too, since it's guaranteed to run without errors... but more detailed testing needs to be performed for all code snippets that are published in the documentation (docs issue).