The commands after you run Apex tests, SFDX: Re-Run Last Invoked Apex Test Class and SFDX: Re-Run Last Invoked Apex Test Method, don't work if you run Apex test in Apex Test side bar view. salesforcedx-vscode-core.retrieve-test-code-coverage option doesn't work either. But they work well when you run test from link text.
--codecoverage option should be added and re-run commands should be available when you run test in Apex test sidebar. Now they work well in "Run All Tests" or "Run Test" texts in the editor.
_Feel free to attach a screenshot_.
VS Code Version: 1.28.1
SFDX CLI Version: 44.2.2
OS and version: Mac OS X (10.13.6 High Sierra)
Internal Work Item: W-5296419
Thanks for reporting this @skosaka. This is in fact a gap in the Test Sidebar and we'll log an issue to make sure running tests across the extensions is consistent cc @ntotten.
As this work has now been merged to develop, is the potential release still Winter 19, or could we expect this fix sooner?
Thanks
@JamieBriersSageCom We release every Thursday. This didn't make the cut for this release (we fork on Monday so we can test, etc.), but it will be in next Thursday.
Brilliant news, thank you
Hi @JamieBriersSageCom. The merge from yesterday specifically fixes the code coverage option not being honored when running tests from the test sidebar. The separate issue of the SFDX: Re-Run Last Invoked Apex Test Method/Class not working for test sidebar tests has been filed as separate work.
Okay, thanks for the clarification. Personally, its the ability to use the sidebar whilst getting coverage data which has been my biggest worry, so I'm happy that's resolved and I look forward to any further fixes in the future.
Thanks very much for your hard work.
Released as part of version 45.6.0