-
Notifications
You must be signed in to change notification settings - Fork 37
Addition of RunSpecifiedTests support #76
Comments
Hi @extremesurfer, Ideally we should add all of the
You could then already run $ force-dev-tool changeset create foo ApexClass/Foo ApexClass/TestFoo ApexClass/MockFoo
$ force-dev-tool deployTest -d config/deployments/foo --runTests TestFoo MockFoo
$ force-dev-tool package grep 'ApexClass/Test*' 'ApexClass/Mock*'
ApexClass/TestFoo
ApexClass/MockFoo You could then combine those commands the unix way to s.th. like this: $ force-dev-tool changeset create foo ApexClass/Foo ApexClass/TestFoo
$ force-dev-tool package grep 'ApexClass/Test*' 'ApexClass/Mock*' \
| cut -d '/' -f 2 \
| xargs force-dev-tool deployTest -d config/deployments/foo --runTests Does that sound good to you? |
Hi, yes that sounds good. We will do 1) hopefully by the end of this week. |
Hi @extremesurfer, |
Hi @mbertram, yeah, actually i just wanted to add support for the I would appreciate if you could checkout the |
Released in v0.13.0 |
Suggested new feature which we will fork/add and pull request if acceptable.
With large deployments into development environments where test execution can take several hours it is common practice to execute only the tests in the changeset and not the full suite.
It would be beneficial to have capability within the force-dev-tool to support this usecase.
Suggest:
New cli option deployRunSpecifiedTests added to force-dev-tool
Usage:
force-dev-tool deployRunSpecifiedTests [options] [tests] []
Tests: a list of test classes space separated OR use options -m
Options:
-d= Directory containing the metadata and package.xml.
-m=filemask Filemasks of the naming convention in the package.xml that identifies test classes e.g *Test *Mock
-f= Zip file containing the metadata and package.xml.
Filemasks could be consistent with the test run config e.g inside quotes space separated expressions.
So you'd either supply the test classes on the cli, or provide a mask which looks at the classes in the package.xml and matches against the mask, then runs those. This will allow changeset development to only execute the tests in that changeset.
The text was updated successfully, but these errors were encountered: