How to run tests included in deployment?

14 views
Skip to first unread message

Jurgis Šalna

unread,
Mar 3, 2026, 5:38:01 PMMar 3
to Illuminated Cloud Q&A
I see the new setting has made it into IC2, but it doesn't seem to always work correctly (in this unusual example one test class covers multiple so perhaps that's why it didn't work).

I feel it would be pretty useful if IC2 could do "Run Specified Tests" with ones included in deployment request. Right now I have to create Run Configuration which is a bit tedious.
Screenshot 2026-03-04 at 11.22.44 AM.png

Scott

unread,
Mar 3, 2026, 5:46:06 PMMar 3
to Illuminated Cloud Q&A, jurgis...@gmail.com

I’m assuming you’re talking about the new RunRelevantTests option for test-on-deploy? If so, are you also using the new TestFor and/or Critical options for the @IsTest annotation, or are you just letting Salesforce determine which tests are relevant for the deployed metadata. A concrete example that includes what you’d expect to have been run — and why — and what was actually run would be useful. It would likely need to go to Salesforce since IC is just setting that flag on the deployment request, but I’d certainly be curious to hear the details as well.

I like the idea of another pseudo-option for RunDeployedTests or perhaps RunTestsForDeployed. Do you mind logging an enhancement request in the public issue tracker?

Regards,
Scott Wells

Jurgis Šalna

unread,
Mar 3, 2026, 6:00:49 PMMar 3
to Illuminated Cloud Q&A, Scott, Jurgis Šalna
Ah my mistake on RunRelevantTests - I now remember seeing that I need to declare that TestFor option but I haven't added this.

But yeah what I'm really after is pseudo-option like you said. Added here https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/issues/2928/add-runtestsfordeployed-option-when.

Scott

unread,
Mar 3, 2026, 6:21:28 PMMar 3
to Illuminated Cloud Q&A, jurgis...@gmail.com, Scott

You don’t have to use TestFor to specify explicit dependency relationships, though it can help if Salesforce isn’t finding some relationships that do exist, e.g., due to reflection-based access. It should find the obvious ones. And IC has an option to populate TestFor using its Apex transitive dependency analysis capabilities as well. But if you’re seeing it missing obvious relationships even without that annotation attribute, it’d be good to raise that to Salesforce.

And thanks for logging the enhancement request. I’m pretty deep into another integration right now but can hopefully look at it pretty soon.

Regards,
Scott Wells

Reply all
Reply to author
Forward
0 new messages