Open daimor opened 1 year ago
Reproduce on :
'IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2023.1 (Build 229U) Fri Apr 14 2023 17:37:52 EDT'
iris @ https://github.com/grongierisc/iris-embedded-python-wrapper/releases/download/v0.0.4/iris-0.0.4-py3-none-any.whl
Interpreter :
python3 or irispython / Python 3.10.12
Result :
>>> ipm('test demo -v -only')
[IRISAPP|demo] Test START
Load of directory started on 09/08/2023 13:58:50
Loading file /irisdev/app/test/tests/test.cls as cls
Imported class: test.tests.test
Load finished successfully.
Compilation started on 09/08/2023 13:58:50 with qualifiers 'ckd'
Compiling 3 classes
Compiling class test.dc
Compiling class test.demo
Compiling class test.tests.test
Compiling routine test.dc.1
Compiling routine test.tests.test.1
Compilation finished successfully in 0.049s.
Use the following URL to view the result:
http://172.27.0.2:52773/csp/sys/%25UnitTest.Portal.Indices.cls?Index=15&$NAMESPACE=IRISAPP
All PASSED
[IRISAPP|demo] Test SUCCESS
True
>>> ipm('test demo -v -only')
[IRISAPP|demo] Test START
Load of directory started on 09/08/2023 13:58:52
Loading file /irisdev/app/test/tests/test.cls as cls
Imported class: test.tests.test
Load finished successfully.
Compilation started on 09/08/2023 13:58:52 with qualifiers 'ckd'
Compiling 3 classes
Compiling class test.demo
Compiling class test.dc
Compiling class test.tests.test
Compiling routine test.dc.1
Compiling routine test.tests.test.1
Compilation finished successfully in 0.036s.
Use the following URL to view the result:
http://172.27.0.2:52773/csp/sys/%25UnitTest.Portal.Indices.cls?Index=16&$NAMESPACE=IRISAPP
All PASSED
ERROR closing %ZPM.PackageManager.Developer.UnitTest.Manager
ERROR #5001: A test left a transactions suspended
[IRISAPP|demo] Test SUCCESS
True
>>> ipm('test demo -v -only')
[IRISAPP|demo] Test START
Load of directory started on 09/08/2023 13:58:50
Loading file /irisdev/app/test/tests/test.cls as cls
Imported class: test.tests.test
Load finished successfully.
Compilation started on 09/08/2023 13:58:50 with qualifiers 'ckd'
Compiling 3 classes
Compiling class test.dc
Compiling class test.demo
Compiling class test.tests.test
Compiling routine test.dc.1
Compiling routine test.tests.test.1
Compilation finished successfully in 0.049s.
Use the following URL to view the result:
http://172.27.0.2:52773/csp/sys/%25UnitTest.Portal.Indices.cls?Index=15&$NAMESPACE=IRISAPP
All PASSED
[IRISAPP|demo] Test SUCCESS
True
>>> ipm('test demo -v -only')
[IRISAPP|demo] Test START
Load of directory started on 09/08/2023 13:58:52
Loading file /irisdev/app/test/tests/test.cls as cls
Imported class: test.tests.test
Load finished successfully.
Compilation started on 09/08/2023 13:58:52 with qualifiers 'ckd'
Compiling 3 classes
Compiling class test.demo
Compiling class test.dc
Compiling class test.tests.test
Compiling routine test.dc.1
Compiling routine test.tests.test.1
Compilation finished successfully in 0.036s.
Use the following URL to view the result:
http://172.27.0.2:52773/csp/sys/%25UnitTest.Portal.Indices.cls?Index=16&$NAMESPACE=IRISAPP
All PASSED
[IRISAPP|demo] Test SUCCESS
True
In my case, I had to run it multiple times in a row, to see it
with ipm wrapper as a workaround for #5 from here https://github.com/intersystems-community/zpm-dockerhub/blob/master/iris_ipm.py
Emoty UnitTest randomly fails with error
A test left a transactions suspended
module.xml
test class
tests/test/dc.cls