luaunit icon indicating copy to clipboard operation
luaunit copied to clipboard

Mark a test, class or suite for repetition

Open bluebird75 opened this issue 9 years ago • 0 comments

When working with luajit, a function will have a different implementation whether it is run for the first time or jitted if run enough number of times.

Experiences from people working with luajit is that it is important when running tests to repeat them long enough to trigger the jit compiler.

Proposal :

  • command-line option to trigger execution of each test many times
  • final report of test execution shall show success + number of execution or index of the execution that failed + failure report
  • when test execution fails, stop repeating the test
  • it should be possible to mark tests individually for repetition
  • luajit typically detects a hot loop after 56 executions, so this would be a typical number
  • there might be luajit specific trick to trigger explicitly the jit of a test or function under test

Up for adoption

bluebird75 avatar Jul 20 '16 21:07 bluebird75