The foreach block on the test was binding to the defined XML configs before we run the logic to change them.
It turns out such a dynamic test generation is not possible with mocha. Test runs should be defined outside of the describe block.
To simplify this, I have parameterized the top level describe block with true and false, and selected the configuration based on that and the server version in the before block as before.
The foreach block on the test was binding to the defined XML configs before we run the logic to change them.
It turns out such a dynamic test generation is not possible with mocha. Test runs should be defined outside of the describe block.
To simplify this, I have parameterized the top level describe block with true and false, and selected the configuration based on that and the server version in the before block as before.