function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vladimir BessonovVladimir Bessonov 

how to exit without error when no apex tests are invoked?

Hi. I am trying to deploy the project with CICD pipeline when I still haven't developed any classes yet. In my company preferred way is declarative development (not everyone knows how to code, that helps to avoid complexity for newcomers )

when it comes to executing the apex tests 
sfdx force:apex:test:run --codecoverage --resultformat human --wait 10

ERROR running force:apex:test:run:  Unable to invoke any tests. Ensure the tests are loaded into the org or valid inputs are supplied. Always provide a classes, suites, tests, or testLevel property.
I am getting an error. 
How to fix it without writing rewriting .gitlab-cicd.yml? 

for example lwc tests I skipped with simply adding ---passWithNoTests option 

 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Vladimir,

>> https://github.com/forcedotcom/salesforcedx-vscode/issues/1358

I think you can try checking the above link that has a discussion on a similar issue.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.