TestBox
TestBox copied to clipboard
TESTBOX-353 use matchPatterns for testBundles argument instead of exact match
use PathPatternMatcher.cfc to support path patterns in testBundles argument.
testing
I'd like to create automated test for this in tests/specs, but I couldn't see how to go about doing that.
Manual testing can be done with existing tests.
-
run all tests with the html runner (http://localhost:49616/tests/runner.cfm). Click on test bundles to ensure that the url testBundles parameter continues to work.
-
box testbox run testBundles=WhenThen
should run only theGivenWhenThenTest
bundle. -
box testbox run testBundles=specs.mockbox
should run only the bundles in the tests/specs/mockbox folder.
questions
What docs should be updated with this change?
https://ortussolutions.atlassian.net/browse/TESTBOX-353
It would be nice to actually include the entire Globber library, which is where the path pattern matcher CFC came from. There have been fixes in that upstream project too. I had originally just included the CFC since that was the only file in the globber lib at first and TestBox doesn't support modules.
https://www.forgebox.io/view/globber
Sorry for the long delay @sfeldkamp we have been busy getting ColdBox 7 ready. However, we are going hard on TestBox 5 now. Thanks for all the PRs! You can send us a pr for the docs as well.
@lmajano
No worries. I've been in Node land all this time anyway. I've got some more CF stacked up in my future though.