TestBox icon indicating copy to clipboard operation
TestBox copied to clipboard

TESTBOX-353 use matchPatterns for testBundles argument instead of exact match

Open sfeldkamp opened this issue 2 years ago • 1 comments

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.

  1. 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.

  2. box testbox run testBundles=WhenThen should run only the GivenWhenThenTest bundle.

  3. 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

sfeldkamp avatar Jul 08 '22 19:07 sfeldkamp

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

bdw429s avatar Jul 08 '22 21:07 bdw429s

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 avatar Mar 06 '23 20:03 lmajano

@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.

sfeldkamp avatar Mar 06 '23 20:03 sfeldkamp