Cornichon icon indicating copy to clipboard operation
Cornichon copied to clipboard

How can I make the default scenario test fail?

Open pizegg opened this issue 4 years ago • 3 comments

Hi zebmason, I am trying the utility for c++ google test. How can I make the default scenario test fail if I haven't implemented the behavior?

And now Cornichon only supports basic types : ("bool", "int", "uint", "float", "string"), will you or how can I add more types like pointer or object in the future?

pizegg avatar Aug 27 '20 03:08 pizegg

The software creates stub code which you are then supposed to fill in with something meaningful.

I suppose I could extend the software to detect hexadecimal values as people may want to set colours but pointers or objects make no sense.

Have you read any of the Cucumber stuff?

zebmason avatar Aug 27 '20 08:08 zebmason

I know the purpose of the software is to make stub code, while the stub code should make the test fail in the planing state, and after all the behavior meets the criteria then passes the test.

Sorry for misleading statement, I mean some quick steps integrated into the software like this : https://github.com/cucumber/cucumber/tree/master/datatable#custom-table-types.

pizegg avatar Aug 27 '20 08:08 pizegg

Must admit I didn't know Cucumber could do that but, then again, I've never actually used it as I didn't like the install footprint which is why I wrote this tool.

Obviously feel free to branch the code and implement any extra functionality that you like.

zebmason avatar Aug 28 '20 08:08 zebmason