I use TCases from time to time. I think it is great concept and great tool. The biggest problem for me is input space creation. While it was great idea to change XML to JSON it is still problematic to create JSON file input space for me.
My real life scenario is:
I am writing some code and I create many tests at the same time (behaviour unit tests)
at some point I have some area which I want to cover very carefully with tests - either these are acceptance tests for some simple tool (so all combinations can be covered - I just want to get the clear set of testcases) or there is some crucial area which I want to have pair-wisely covered with testcases
There are drawbacks at this point:
my mind is set to coding mode and it is troublesome to quickly create JSON file at that point
JSON file is not consistent with what I create: I have code which describes how application work, I have tests (written as code) which describe desired behaviour of the application and I should have code to describe input space
very often I want to change input space - sometimes rewrite from scratch for some reason - having to recreate huge JSON file is always an awful perspective
I think there should exist "input space as code" approach which would have other advantages as well:
less lines used to describe input space (json files can have hundreds of lines because of formatting)
more clear and easier to understand at one glance
easy comparison with other versions of input space as code
draw more industry attention which is used to "idea-as-code" approach
Did you ever consider such interface? Here is the example of similar project which tries to implement this idea:
https://github.com/RetailMeNot/pairwise
What do you think about it ?
(I just realized that maybe this should go to discussion section - I am sorry if I make some noise here.)
Hi,
I use TCases from time to time. I think it is great concept and great tool. The biggest problem for me is input space creation. While it was great idea to change XML to JSON it is still problematic to create JSON file input space for me. My real life scenario is:
There are drawbacks at this point:
I think there should exist "input space as code" approach which would have other advantages as well:
Did you ever consider such interface? Here is the example of similar project which tries to implement this idea: https://github.com/RetailMeNot/pairwise What do you think about it ?
(I just realized that maybe this should go to discussion section - I am sorry if I make some noise here.)