Log In  


Cart #22079 | 2016-06-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12

Recently, I got really tired of writing buggy code with prinths scattered everywhere to try and figure out what the hell was going on. So, I created a way to test your carts while they run. It gives you output on the command line that looks something like this:

Hopefully, it's not too difficult to install/use. I mimicked mocha's API at a high-level.

I'd love to hear what you think if anyone decides to try it out. You can also download the cart and take a look at the code for more info. There's fairly detailed documentation on Github:

https://github.com/jozanza/pico-test

Also, feel free to comment on this thread with questions or hmu on twitter. Cheers!

12


Very excited to try this! =)


Really cool. May I use your code as the basis of the diskmag engine I am making?


oh wow! thank you very much! Looking forward to give it a try soon


Awesome! Please let me know how you like it, @impbox and @misato.

@darkhog sure, go for it :)


I think this is yet another example of how Pico can combine its limited 8-bity goodness to inspire creativity, while keying into many modern programming ideas such as testing. Great contribution!


Thanks! I really appreciate the simplicity and limitations of the PICO-8 runtime, but the editors and tooling should be a lot less limited imho.


how well does this run on windows? I know windows supports node but I'm having trouble making the examples in the github repo work. I see a bunch of "INFO: <foo>" lines printed out but they don't seem to get piped into the pico-test tool correctly. I figure this is likely an issue with how I'm redirecting input to that program but also I wonder if pico8 does output differently on windows or if node tools work differently on windows



[Please log in to post a comment]