3 ms·
I've done a similar thing myself when trying to test operations on a hierarchical database for my internal product. Biggest difficulty for me was that some com
by olvy0 4y ago
I've done a similar thing myself when trying to test operations on a hierarchical database for my internal product.
Biggest difficulty for me was that some combinations of operations were illegal and I had to think about all the edge cases and filter them out, and this took a long time.
My SO works in hardware, and she says they always use a constraint solver to generate test cases / test vectors, and she never understood why this wasn't popular in software. I googled it a bit and found lots of academic papers but no concrete implementation.
I've also thought about generating test vectors using a generator based on Markov chains, I wrote about that here [0], based on this [1] submission.
I'm not familiar enough with either using constraint solvers to generate test cases, or Markov chains, to know if I'm talking nonsense here or is it just something that nobody thought to develop properly.
[0] https://news.ycombinator.com/item?id=31704791 https://news.ycombinator.com/item?id=31704791
[1] https://github.com/mxgmn/MarkovJunior https://github.com/mxgmn/MarkovJunior