Skip to content

LuaUnit v3.4

Latest
Compare
Choose a tag to compare
@bluebird75 bluebird75 released this 04 Mar 20:03
· 77 commits to master since this release

I am happy to announce a new release of LuaUnit v3.4

Version 3.4 - 02 March 2021

  • support for Lua 5.4
  • assertAlmostEquals() works also on tables and nested structures
  • choose test output style with environment variable LUAUNIT_OUTPUT
  • setOutputType() accepts the xml filename as second argument when using the format junit
  • improve printing of table information in case of cycles
  • add ability to skip tests with skip() and skipIf()
  • detect attempts to exit the test suite before it is finished running
  • add assertErrorMsgContentEquals() to validate exactly any error message
  • filter out some stack entries when printing assertions (useful when embedding LuaUnit inside another test layer) with STRIP_EXTRA_ENTRIES_IN_STACK_TRACE
  • add assertTableContains() and assertNotTableContains() to verify the presence of a given value within a table
  • remove option TABLE_EQUALS_KEYBYCONTENT, it did not make sense
  • bugfix:
    • assertIs()/assertNotIs() deals better with protected metatables
    • assertEquals() deals better with tables containing cycles of different structure
    • fix table length comparison for table returning inconsistent length