Lake icon indicating copy to clipboard operation
Lake copied to clipboard

do we have some unit tests for Lake itself? thanks

Open ipstone opened this issue 10 years ago • 2 comments

ipstone avatar Apr 04 '14 22:04 ipstone

There are tests (running lake in the directory under 'tests') but they aren't (yet) very automatic. Part of the problem is verifying those tests on different platforms with different compilers. Some of them require extra functionality (e.g. GTK+ or Mono) so they should be allowed to fail on platforms without them.

I've done before/after output comparisons when testing for regressions, but this is obviously platform-dependent.

So it's a tricky problem; any advice? I agree that a carefully designed and less ad-hoc set of tests covering basic functionality would be useful and more educational.

stevedonovan avatar Apr 07 '14 09:04 stevedonovan

@stevedonovan

hi Steve, I gave this some thought, we don't want to reinvent the wheel - wondering if this is possible: translate some unit tests from such as Rake (ruby, or do we have another more appropriate one in python? ) and use them to test lake? - I am thinking about not 'manually' translate, but say, a program to parse the Rake test codes, and generate more or less Lua test codes .... just a thought

ipstone avatar Apr 17 '14 14:04 ipstone