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!

P#22080 2016-06-02 02:05 ( Edited 2016-06-02 22:59)

Very excited to try this! =)

P#22082 2016-06-02 02:34 ( Edited 2016-06-02 06:34)

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

P#22091 2016-06-02 08:36 ( Edited 2016-06-02 12:36)

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

P#22097 2016-06-02 10:23 ( Edited 2016-06-02 14:23)

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

@darkhog sure, go for it :)

P#22099 2016-06-02 10:42 ( Edited 2016-06-02 14:42)

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!

P#22100 2016-06-02 11:38 ( Edited 2016-06-02 15:38)

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.

P#22124 2016-06-02 18:59 ( Edited 2016-06-02 22:59)

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

P#109297 2022-03-28 03:01 ( Edited 2022-05-02 02:05)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 20:06:44 | 0.018s | Q:30