ciscoheat / buddy

Your friendly BDD testing library for Haxe!
MIT License
96 stars 24 forks source link

minor features #50

Closed kobi2187 closed 8 years ago

kobi2187 commented 8 years ago

Hi,

ciscoheat commented 8 years ago

Hi, thanks for your feedback!

Coloring is a good idea, the problem is that you either need another reporter for that, or a platform-consistent TTY detection (and I'm jumping through quite a few hoops already with asynchronous delays and main() code generation.) But it's a good idea that I'll consider.

Array comparison with should.be is by reference (identity) as stated in the docs, I even added a special python section to ensure that.

For item-by-item checks in an array, you can use containExactly as you say, or the other iterable methods: https://github.com/ciscoheat/buddy#iterable

kobi2187 commented 8 years ago

okay, thank you. the library is very nice, and does all i need (for now). coloring is just easier to see. perhaps i will implement the reporter interface, like the docs say. I've made snippets for vscode. it greatly simplifies the workflow for me.

ciscoheat commented 8 years ago

Glad you like it. :) Have you created snippets for buddy suites and specs? I'm happy to add a link to them if they are public somewhere.

ciscoheat commented 8 years ago

I'll add a ConsoleColorReporter and options for enabling colors in the next release, it shouldn't be too long.

kobi2187 commented 8 years ago

cool, thank you! I made snippets though I don't really know the philosophy and terminology of BDD, so I made the wording fit my line of thinking. you can change that if you want to include it. I can email it to you, making a repo just for that seems exaggerated. my email address is kobi2187@gmail.com send me a note and i'll reply :-) PS: earlier I used mohxa from underscore discovery. it has coloring and a log function and the colors do make a difference for a quick glance, but that library is very barebones (practically naked) in terms of features.