Allow to set test run type as configuration #5796
Replies: 3 comments
-
Hi @MGarfOppLoans , thanks for opening this suggestion. Independent to the result format, have you or someone else on your team tried using the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip I'll give it a shot |
Beta Was this translation helpful? Give feedback.
-
turns out i had that on, tap seems to still be faster but did notice some speed improvements with the apex library |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Currently when you click run tests it uses the default test run type which can be long running for test development
Describe the solution you'd like
Allow configuration to set the run type so my team can default to Tap for faster test runs when developing and back to the default when debugging. Currently we rely on aliases and vscode tasks to attempt the same outcome but it would be much cleaner if we can in settings set with test run type to run
See hardcoded reference to human on:
\packages\salesforcedx-vscode-apex\src\commands\forceApexTestRun.ts
line 143:
.withFlag('--resultformat', 'human')
can be replaced with:
.withFlag('--resultformat', vscode.workspace.getConfiguration('testFormat') ? vscode.workspace.getConfiguration('testFormat') | 'human');
Beta Was this translation helpful? Give feedback.
All reactions