The minitest syntax now restore the old value of the testSuiteLog.verbose flag once it is finished. This fixes an issue where nested calls could unintentionally modify the verbose state of all subsequent tests.
minitest(true) { test 1 + 1 => 2; // Printed to log minitest(false) { test 2 + 2 => 4; // Not printed to log } test 5 + 5 => 10; // Previously not printed to log. Now printed to log. }
Please be aware that it is still adviced to avoid nested test suite logging, since all features may not be fully supported.
The testCases function now restores the old values of the testSuiteLog.verbose and testSuiteLog.hideErrors flags once it is finished. This fixes an issue where nested calls could unintentionally modify the verbose and hideErrors state of all subsequent tests.
Please be aware that it is still adviced to avoid nested test suite logging, since all features may not be fully supported.