ldrumm / testingunit

Another unit testing library for Lua inspired by python unittest
MIT License
0 stars 0 forks source link

win32 suppport #5

Open ldrumm opened 10 years ago

ldrumm commented 10 years ago

We currently rely on POSIX find for test discovery to avoid the need to install external dependencies. This causes the dependency on find itself. derpderpderp.

Perhaps there is an equivalent command on windows....

The find command is simply:

find "$DIR" -maxdepth $DEPTH  -iname "$PATTERN" -type f

see https://github.com/ldrumm/testingunit/blob/0f5774/src/testingunit.lua#L289 for current implementation

ldrumm commented 10 years ago
dir %s /B /S /A /-R /-L

This windows cmd should do the trick in some respects, but according to the internet, setting a recusion depth isn't possible.

Will probably live with this for now as filtering code is likely to be even buggier