D11791: Add unit tests for lua backends

Nikita Sirgienko noreply at phabricator.kde.org
Fri Apr 13 20:31:05 UTC 2018


sirgienko added a comment.


  Well, maybe I found the problem of unstable tests result: repeating lua input in output and not numbered line produce situation, that sometimes we end output parsing, because aviable lua output ends, but lua VM doesn't end work. For example, if we run
  
    print(3)
    print(4)
  
  We could end parsing after getting result of first command (if we read lua prompt before lua repeats the command to output, for this example, read `> ` before `print(4)` will be writed in output chanell (there is delay between this moments)) and set status `Done`, but output don't end and we have result of second command in output.
  I think, It's not a problem for Cantor GUI, because I haven't notice this problem, while I have worked with the worksheet, but it affects to test results.
  I think, there are few ways to work with it:
  
  1. Change expresssion end condition: we know, that lua repeat all input to output, so we could wait, until read all input commands in output
  2. Just ignore this problem and run tests few times and take maximum of passed tests

REPOSITORY
  R55 Cantor

REVISION DETAIL
  https://phabricator.kde.org/D11791

To: sirgienko, #cantor
Cc: asemke, filipesaraiva, #cantor, #kde_edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20180413/320800e6/attachment-0001.html>


More information about the kde-edu mailing list