PL0-Language-Tools icon indicating copy to clipboard operation
PL0-Language-Tools copied to clipboard

Get tests working

Open ioquatix opened this issue 8 years ago • 7 comments

It looks like there is some rudimentary testing. It's probably a good idea if we can get it working again? @tangentstorm did you make them?

ioquatix avatar Mar 29 '17 20:03 ioquatix

If we get it working, we can use Travis for CI.

ioquatix avatar Mar 29 '17 20:03 ioquatix

That sounds like me... :)

tangentstorm avatar Mar 29 '17 23:03 tangentstorm

Do you think you can have a quick hack to get them working? Need a script that can run on travis, exit status 0 if good, 1 if fail, and ideally some information why it failed.

ioquatix avatar Mar 29 '17 23:03 ioquatix

What I run is the test script... It just generates a bunch of output into the expect directory, and then does a git diff on that directory. We just need to make that file return [ $size == 0 ] ...

I don't know how well Travis handles colored output though....?

tangentstorm avatar Mar 29 '17 23:03 tangentstorm

Yes it handles all TTY output, including colours.

ioquatix avatar Mar 29 '17 23:03 ioquatix

I tried running test script but.. it didn't seem to work..

ioquatix avatar Mar 29 '17 23:03 ioquatix

The test script should be runable now.

crcx avatar Mar 30 '17 17:03 crcx