1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-25 14:43:22 +00:00
CC-Tweaked/src/test/resources/test-rom/spec/modules/cc
SquidDev 6b3773a862 Run tests with coverage
- Use jacoco for Java-side coverage. Our Java coverage is /terrible
   (~10%), as we only really test the core libraries. Still a good thing
   to track for regressions though.

 - mcfly now tracks Lua side coverage. This works in several stages:
   - Replace loadfile to include the whole path
   - Add a debug hook which just tracks filename->(lines->count). This
     is then submitted to the Java test runner.
   - On test completion, we emit a luacov.report.out file.

   As the debug hook is inserted by mcfly, this does not include any
   computer startup (such as loading apis, or the root of bios.lua),
   despite they're executed.

   This would be possible to do (for instance, inject a custom header
   into bios.lua). However, we're not actually testing any of the
   behaviour of startup (aside from "does it not crash"), so I'm not
   sure whether to include it or not. Something I'll most likely
   re-evaluate.
2020-05-11 15:47:30 +01:00
..
shell Bump illuaminate version 2020-04-09 22:15:06 +01:00
completion_spec.lua Refactor shell completion into a separate module (#281) 2019-09-15 18:48:40 +01:00
expect_spec.lua Run tests with coverage 2020-05-11 15:47:30 +01:00
pretty_spec.lua An initial stab at documentation generation (#360) 2020-04-10 10:27:53 +01:00