Testorio deprecated


THIS MOD HAS BEEN SUCCEEDED BY: https://mods.factorio.com/mod/factorio-test Mod testing framework for factorio.

Internal
2 years ago
1.1
113

Changelog

Version: 1.6.0
Date: 2022-12-16
  Changes:
    - Luassert is now optional, but enabled by default. This can be configured using the `load_luassert` option.
Version: 1.5.0
Date: 2022-09-07
  Changes:
    - If a describe block has nested ".only" items, only the inner ".only" items will be active. This allows you to narrow test focus without removing the outer .only.
    - Made defining async tests more flexible. See wiki for more details.
Version: 1.4.1
Date: 2022-08-04
  Bugfixes:
    - Fixed a bug when using `match._` in a failed assertion.
Version: 1.4.0
Date: 2022-08-04
  Changes:
    - Added an alternate format for calling .each that may work better with auto-formatters.
  Bugfixes:
    - Removed use of a global variable in luassert.
Version: 1.3.3
Date: 2022-07-22
  Bugfixes:
    - Fix file link detection for mods with numeric characters in mod name.
Version: 1.3.2
Date: 2022-07-22
  Bugfixes:
    - Fix link in debugadapter log in some cases.
Version: 1.3.1
Date: 2022-07-10
  Bugfixes:
    - Fix crash on duplicate call to remote runTests.
Version: 1.3.0
Date: 2022-07-10
  Features:
    - Added support for remote functions. See docs for more details.
  Changes:
    - Removed in game enabler tool.
Version: 1.2.2
Date: 2022-04-20
  Bugfixes:
    - Fixed a crash when world is loaded without tests configured.
Version: 1.2.1
Date: 2022-04-20
  Bugfixes:
    - Actually include bugfix described below.
Version: 1.2.0
Date: 2022-04-20
  Features:
    - Added an "after_test" hook, which runs after the current test (only) completes.
  Changes:
    - Removed the "run now" button from config gui. There is now only a "reload and run" button.
    - Minor gui improvements.
  Bugfixes:
    - Modified luassert to fix a crash when using factorio objects with spy/stub/mock.
Version: 1.1.0
Date: 2022-04-15
  Features:
    - The test progress gui now has a close button.
    - For fun! Added the "sound_effects" option.
  Changes:
    - Improved config gui
    - Improved locale on config gui
    - Tests can now be rerun after a load error
  Bugfixes:
    - Fixed crash when reloading mods from config gui
Version: 1.0.1
Date: 2022-04-11
  Changes:
    - Improved config gui slightly
    - Config gui no longer closes after tests start running
  Bugfixes:
    - Fixed crash that arises when using weak tables and dangling references in test functions
Version: 1.0.0
Date: 2022-04-03
  Changes:
    - Initial stable release.
    - Allow tests to be re-run (run again) for faster testing. Re-runs will add "no_rerun" to tag blacklist, so you can mark tests that cannot be re-run.
    - before_test_run option is no longer called after an after_mod_reload test.
  Bugfixes:
    - Fixed test gui showing wrong number of describe block errors.
Version: 0.5.1
Date: 2022-03-22
  Bugfixes:
    - Removed "assignment to undefined global" warnings if using debugadapter
    - Fixed a crash when using weak tables in global and using after_mod_reload when a test function holds references to otherwise unreferenced objects
Version: 0.5.0
Date: 2022-03-20
  Changes:
    - Updated to TSTL version 1.4. This removes the use of many global variables.
    - Added describe block error count to test gui.
  Features:
    - Added the "get_area" function under testUtil/areas.
Version: 0.4.2
Date: 2022-02-11
  Bugfixes:
    - Added locale for test-mod setting.
Version: 0.4.1
Date: 2022-02-06
  Bugfixes:
    - Fixed an issue with stacktraces in test output.
    - Fixed an issue with test summary in test output.
Version: 0.4.0
Date: 2021-01-31
  Features:
    - New and improved in-game test run GUI.
    - Improved test output.
    - Test duration is now also reported.
    - Error in test definitions (in describe blocks) are now caught and reported.
    - If using a TypescriptToLua project with the compiler option "sourceMapTraceback" enabled, debugadapter console links now use the sourcemap.
  Changes:
    - the test config option "log_level" was removed and no longer has any effect. Use "log_passed_tests" instead.
Version: 0.3.1
Date: 2021-12-8
  Bugfixes:
    - Fix issue with improper stacktrace in test output
Version: 0.3.0
Date: 2021-12-7
  Features:
    - Tags! You can now tag describe block/tests with string tags, and whitelist/blacklist tags in test config. See wiki on GitHub for more details.
  Changes:
    - The default ticks_between_tests is now 1 instead of 0.
    - The test progress gui shows the current running test before the test wait period, not after. This should make the gui more up to date in the event of a long-test.
    - Small improvements to locale
    - The factorio-mod-linker tool has been moved to a separate npm package testorio-tools. Please update if you are using it.
  Bugfixes:
    - The test config window is now properly disabled after tests have already began running.
    - Internally, Testorio lib is now bundled into one lua file. This should fix problems relating to module name conflicts
Version: 0.2.0
Date: 2021-11-28
  Changes:
    - Update to TypescriptToLua 1.2.0. This brings very minor performance improvements, and fixes some minor compatibility issues