salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

Add Button to Turn Code Coverage on/off

Open abivelj opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like A button on the status bar that you can click that will turn on/off the code coverage so you don't have to go to the settings and make the change when you just want to run the test without code coverage.

Describe alternatives you've considered Going to the settings and turning it on and off.

abivelj avatar Mar 25 '19 17:03 abivelj

I can't get the solution to run. I start the "launch extension" debug configuration, but when the extensions start to load I just get this error: "activating extension 'salesforcedx-vscode-apex' failed: undefined.

I'm usually developing in visual studio so I'm not as familiar with vs code development or vacode extensions, can anyone help?

abivelj avatar Mar 26 '19 17:03 abivelj

@abivelj Can you open a new issue for the activation problem and provide full output of the output window.

ntotten avatar Mar 27 '19 14:03 ntotten

I use this plugin to toggle Code Coverage

https://marketplace.visualstudio.com/items?itemName=rebornix.toggle

{
  "key": "cmd+k cmd+t",
  "command": "toggle",
  "when": "editorTextFocus",
  "args": {
    "id": "sfdc-test-converage",
    "value": [
      {
        "salesforcedx-vscode-core.retrieve-test-code-coverage": true
      },
      {
        "salesforcedx-vscode-core.retrieve-test-code-coverage": false
      }
    ]
  }
} 

But sometime, I can not remember its on or off, if there is a button on the status bar that will better.

jairzh avatar Jul 09 '19 06:07 jairzh