Skip to content

Commit 07fcfe3

Browse files
authored
Merge pull request #14 from gjsjohnmurray/sapphire-goose
Adjust to work with InterSystems Testing Manager extension
2 parents b683577 + bf4988e commit 07fcfe3

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"github.copilot",
66
"intersystems-community.servermanager",
77
"intersystems-community.sqltools-intersystems-driver",
8+
"intersystems-community.testingmanager",
89
"intersystems-community.vscode-objectscript",
910
"intersystems.language-server",
1011
"mohsen1.prettify-json",

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"links": {
1717
"UnitTest Portal": "${serverUrl}/csp/sys/%25UnitTest.Portal.Home.cls?$NAMESPACE=IRISAPP"
1818
}
19-
}
19+
},
20+
"intersystems.testingManager.client.relativeTestRoot": "tests"
2021

2122
}

iris.script

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
// Unexpire passwords to simplify dev mode. Comment these two lines for Production use
21
zn "%SYS"
3-
Do ##class(Security.Users).UnExpireUserPasswords("*")
42

5-
; enabling callin for Embedded Python
3+
// Unexpire passwords and set up passwordless mode to simplify dev use.
4+
// ** Comment out these two line for Production use **
5+
do ##class(Security.Users).UnExpireUserPasswords("*")
6+
zpm "install passwordless"
7+
8+
// Enable callin for Embedded Python
69
do ##class(Security.Services).Get("%Service_CallIn",.prop)
710
set prop("Enabled")=1
811
set prop("AutheEnabled")=48
@@ -12,10 +15,13 @@
1215
do $SYSTEM.OBJ.Load("/home/irisowner/dev/Installer.cls", "ck")
1316
set sc = ##class(App.Installer).setup()
1417

15-
// comment the line below for production images
16-
zpm "install passwordless"
17-
// load all the code of the project as a ZPM package
1818
zn "IRISAPP"
1919

20+
// Create /_vscode web app to support intersystems-community.testingmanager VS Code extension
21+
zpm "install vscode-per-namespace-settings"
22+
23+
// Configure %UnitTest in IRISAPP to suit the VS Code extension
24+
set ^UnitTestRoot="/usr/irissys/.vscode/IRISAPP/UnitTestRoot"
25+
2026
zpm "load /home/irisowner/dev/ -v":1:1
2127
halt

tests/dc/sample/unittests/TestPersistentClass.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Class dc.sample.unittests.TestCreateRecord Extends %UnitTest.TestCase
1+
Class dc.sample.unittests.TestPersistentClass Extends %UnitTest.TestCase
22
{
33

44
Method TestCreateRecord()

0 commit comments

Comments
 (0)