Skip to content

Commit

Permalink
Merge pull request #2 from gjsjohnmurray/fix-1
Browse files Browse the repository at this point in the history
Make debugging work in client-side development mode
  • Loading branch information
gjsjohnmurray authored May 16, 2023
2 parents 6f0a317 + edbd0ac commit e351eff
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 2,149 deletions.
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,31 @@ In order to support topologies in which client-side-managed test classes have to
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:
- For client-side paradigm (in `settings.json`, or in `"settings"` object in `xxx.code-workspace` file):
- For the client-side paradigm (in `settings.json`, or in `"settings"` object in `xxx.code-workspace` file):
```
"objectscript.conn": {
"server": "iris231",
"ns": "USER",
"active": true
},
```
- For server-side paradigm (in `xxx.code-workspace` file):
"objectscript.conn": {
"server": "iris231",
"ns": "APP",
"active": true
},
```
- For the server-side paradigm (in `xxx.code-workspace` file):
```
"folders": [
{
"name": "iris231:USER",
"uri": "isfs://iris231:user/?mapped=0"
"name": "iris231:APP-ISFS",
"uri": "isfs://iris231:app-isfs/?mapped=0"
}
],
```
> 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.
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.
> By setting this at the workspace level you can have different file layouts for different projects.
## Running Tests
VS Code provides several different ways to run tests.
Expand All @@ -77,4 +81,4 @@ The `...` menu of the Testing panel in Test Explorer includes several useful com
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.
Hovering on a run's folder reveals an action button which launches %UnitTest's own results browser in an external web browser.
Hovering on a run's folder reveals an action button which launches %UnitTest's own results browser in an external web browser.
Loading

0 comments on commit e351eff

Please sign in to comment.