Skip to content

Conversation

WillieRuemmele
Copy link
Contributor

@WillieRuemmele WillieRuemmele commented Mar 17, 2025

What does this PR do?

improves error message when no tests in the org from
Error (1): Always provide a classes, suites, tests, or testLevel property.

to

Error (INVALID_INPUT): There are no apex tests to run in the org

Try this:

Ensure Apex Tests exist in the org

What issues does this PR fix or reference?

@W-17866064@
forcedotcom/cli#3217

Copy link
Member

@cristiand391 cristiand391 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one small request around error handling.

@cristiand391
Copy link
Member

QA notes:

✅ see new error running apex run test against org with no tests
✅ other errors are ignored:
Screenshot 2025-03-18 at 16 33 21

@cristiand391 cristiand391 merged commit e14ab5b into main Mar 18, 2025
15 checks passed
@cristiand391 cristiand391 deleted the wr/improveError branch March 18, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants