Skip to content

Commit e351eff

Browse files
Merge pull request #2 from gjsjohnmurray/fix-1
Make debugging work in client-side development mode
2 parents 6f0a317 + edbd0ac commit e351eff

File tree

6 files changed

+76
-2149
lines changed

6 files changed

+76
-2149
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,31 @@ In order to support topologies in which client-side-managed test classes have to
3636
3737
1. Ensure your VS Code workspace specifies its server connection(s) by referencing server(s) in the `intersystems.servers` configuration object which InterSystems Server Manager maintains. For example, assuming a server named `iris231` has been defined:
3838
39-
- For client-side paradigm (in `settings.json`, or in `"settings"` object in `xxx.code-workspace` file):
39+
- For the client-side paradigm (in `settings.json`, or in `"settings"` object in `xxx.code-workspace` file):
4040
```
41-
"objectscript.conn": {
42-
"server": "iris231",
43-
"ns": "USER",
44-
"active": true
45-
},
46-
```
47-
- For server-side paradigm (in `xxx.code-workspace` file):
41+
"objectscript.conn": {
42+
"server": "iris231",
43+
"ns": "APP",
44+
"active": true
45+
},
46+
```
47+
48+
- For the server-side paradigm (in `xxx.code-workspace` file):
4849
```
4950
"folders": [
5051
{
51-
"name": "iris231:USER",
52-
"uri": "isfs://iris231:user/?mapped=0"
52+
"name": "iris231:APP-ISFS",
53+
"uri": "isfs://iris231:app-isfs/?mapped=0"
5354
}
5455
],
5556
```
57+
5658
> We recommend setting the `username` property of the server definition object, and using Server Manager's secure password storage feature to hold that user's password.
5759
5860
2. For a workspace using client-side editing, test classes are sought in `.cls` files under the `internal/testing/unit_tests` subfolder, using the conventional layout of one additional subfolder per package-name element. If your test classes are located elsewhere, use the `intersystems.testingManager.client.relativeTestRoot` setting to point there.
5961
62+
> By setting this at the workspace level you can have different file layouts for different projects.
63+
6064
## Running Tests
6165
6266
VS Code provides several different ways to run tests.
@@ -77,4 +81,4 @@ The `...` menu of the Testing panel in Test Explorer includes several useful com
7781
7882
The %UnitTest framework persists results of runs in server-side tables. The 'Recent History' root folder lets you explore the most recent ten sets of results for each server and namespace the workspace uses.
7983
80-
Hovering on a run's folder reveals an action button which launches %UnitTest's own results browser in an external web browser.
84+
Hovering on a run's folder reveals an action button which launches %UnitTest's own results browser in an external web browser.

0 commit comments

Comments
 (0)