Use fixture to run different config on same tests #488
Replies: 3 comments 1 reply
-
Yes, that's really something that we need. With all different configs and backends. |
Beta Was this translation helpful? Give feedback.
-
I needed all the tests to run for the persistent set when I was trying out the durable version, but most of them are only using the default config which sets the index structure to the hitchhiker-tree. For a while, I was simply changing the default value for my branch and - voila - a lot more bugs were caught. Then, wanting to do it properly, I thought of a framework to create all configs of interest and started to convert test by test to iterate through all of them. Fortunately, I didn't come very far because one night I had a different idea which I though was genius at the time and made me happy for at least a day xD Long story short, my idea was to set the default config variables from outside, i.e. bind them in kaocha's I just saw this discussion now, otherwise I guess I wouldn't have looked for a different solution, but the dynamic default solution actually seems more flexible to me then the fixture solution. I wouldn't say I have too much experience with test fixtures though, so I wouldn't be surprised if they are more powerful than I think. Besides, I don't know if there is a downside to making the default values dynamic. |
Beta Was this translation helpful? Give feedback.
-
Since this was originally part of the refactor-test-namespace-story I was thinking about this some more. Each test-namespace would have to be adapted to use multiple configs and run all the tests for each config.
Beta Was this translation helpful? Give feedback.
All reactions