Releases: SkyrimScripting/SkyUnit
Releases · SkyrimScripting/SkyUnit
v1 - Hello, SkyUnit
v1
The goal for v1
of SkyUnit
is to be as minimal as possible:
- Any script with a name ending in "
UnitTest
" is automatically run - Only
global
functions are supported- Functions with names starting with
Test
are each run as test cases
- Functions with names starting with
- Test results are written to
SkyUnit.TestResults.log
- A summary of all test results is printed at the very end
SkyUnit.Assert(bool, [string message])
is the only assertion provided- On a failure, the Papyrus source code file name and line number are provided
- The game automatically exits after all unit tests have been run
- None of this is configurable
Why?
So that I'm unblocked writing some tests for Papyrus (and can revisit making this a fully features testing framework in the near future!)