-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
Summary
When we run sfdx force:apex:test:run
from our ci/cd Github action, it fails with the error "ERROR running force:apex:test:run: Always provide a classes, suites, tests, or testLevel property."
Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
We are using code based on the scratch-org-test job of ci-pr.yml in the dreamhouse repo.
- Install Salesforce CLI
- Checkout the source code
- Store secret for dev hub
- Authenticate dev hub
- Create scratch org
- Deploy source to scratch org
- Assign permissionset
- SKIPPED Import sample data
- Run Apex tests in scratch org
Expected result
Test suite is run
Actual result
Error - "ERROR running force:apex:test:run: Always provide a classes, suites, tests, or testLevel property."
We have tried adding a -l RunAllTestsInOrg
switch (also tried RunLocalTests, and using --testlevel) and still get the same error.
System Information
Output after installing the sfdx-cli -
sfdx-cli/7.144.2 linux-x64 node-v16.14.2
This was previously working with v7.143.0
RupertBarrow