-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run Specified test class in bitbucket pipeline #902
Comments
Hi @shreyagoyal06, My guess here is the xq command is not in the PATH. |
Hi @scolladon But the output of this command is just the name of the apex classes that are present in my package.xml. Its not providing the test class names to input into the SF command for RunSpecifiedTest attribute. |
Hi @shreyagoyal06, maybe you want to get only the test classes from the |
Hi @scolladon Thank you so much for the solution provided. But instead of appending "Test" to the classes which does not have a test class in the package.xml, is it possible somehow that we can get its test class name from the force-app/main/default/classes folder instead? |
How the script would know what test class to add depending on classes found in the package.xml ? My bet is your better off renaming the test classes to follow a pattern and use the jq script 👍 |
Okay, thanks for your time and support. |
Issue verification check:
What is the problem?
How do I run only specified test classes while deploying to SF environment?
Its mentioned in the doc to use the 'xq' command but when I'm trying to install yq its installs correctly and shows the yq version as well after it when running the xq command provided in the documentation it shows "command not found"
below is the sample yml
Provide the command and the parameters you used
Provided the yml above
What is the expected result?
to get test class names in testclass.txt file
What is the actual result?
xq:command not found
The text was updated successfully, but these errors were encountered: