Skip to content

Allow to set test run type as configuration #3072

@MGarfOppLoans

Description

@MGarfOppLoans

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');

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions