You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When used alongside [Test Coverage Tool](https://openexchange.intersystems.com/package/Test-Coverage-Tool) this extension presents coverage inside VS Code:
_Code coverage example showing coverage of Test Coverage Tool's own unit tests_
27
+
_Coverage example showing coverage of Test Coverage Tool's own unit tests_
28
+
29
+
In the above screenshot the Test Coverage view has been dragged to the secondary sidebar.
30
+
31
+
32
+
Displaying which code lines your tests cover aids the improvement of those tests. The greater the percentage of code lines covered by testing, the more likely your tests will detect regressions.
33
+
34
+
Below is an example from the [InterSystems Package Manager](https://github.com/intersystems/ipm) repository. Two test classes ran code in the %IPM.Repo.Definition class, but neither of them covered line 88 in the screenshot below:
35
+
36
+

37
+
38
+
_Tests failed to cover line 88_
39
+
40
+
The optional Test Coverage Toolbar at the top of the class's editor and the coverage decorations in the Explorer tree combine to promote good testing habits.
28
41
29
42
In order to support topologies in which client-side-managed test classes have to be run in the namespace of a remote server, this extension uses the `/_vscode` web application on the test-running server, no matter whether local or remote.
30
43
@@ -82,12 +95,13 @@ Hovering on a run's folder reveals an action button which launches %UnitTest's o
82
95
83
96
## Known Limitations
84
97
85
-
This extension is a preview and has some known limitations:
98
+
This extension has some known quirks and limitations:
86
99
87
100
- The extension uses server-side REST support for debugging even when tests are not being debugged. Debug support is broken in InterSystems IRIS 2021.1.3, and maybe also in earlier 2021.1.x versions. Either upgrade to a later version or request an ad-hoc patch from InterSystems.
88
-
- In client-side mode test-run results don't update the testing icons in the editor gutter or the Local Tests tree in Testing view. Workaround is to view them under the Recent History tree.
89
-
- The extension has only been tested with InterSystems IRIS instances that use the English locale. Its technique for parsing the output from %UnitTest is likely to fail with other locales.
90
-
- The `/autoload` feature of %UnitTest is not supported. This is only relevant to client-side mode.
101
+
- Launching the IRIS debugger requires a document on the target server namespace to be open and active. This extension opens one automatically at the beginning of all types of test (Run, Debug and Run With Coverage).
102
+
- The very first coverage-type run after installation may report that the Test Coverage Tool is missing. Use the Refresh Tests button on the Test Explorer view, then retry your coverage run.
103
+
- The extension has only been tested with InterSystems IRIS instances that use the English locale. Its technique for parsing the output from %UnitTest may fail when used with other locales.
104
+
- The `/autoload` feature of %UnitTest is not currently supported. This is only relevant to client-side mode.
91
105
- The loading and deleting of unit test classes which occurs when using client-side mode will raise corresponding events on any source control class that the target namespace may have been configured to use.
0 commit comments