stevedonovan / Lake

A Lua-based Build Tool
MIT License
132 stars 16 forks source link

do we have some unit tests for Lake itself? thanks #39

Open ipstone opened 10 years ago

stevedonovan commented 10 years ago

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.

ipstone commented 10 years ago

@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