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 packaging an app with a unit test defined as results in Unit Tests that will not run outside of the developer namespace.
zpm "test myapp -v"
`Load of directory started on 12/06/2022 09:18:01
Loading file /prod/iris/mgr/.modules/DEPOLY/myapp/1.0.3/tests/tests/UnitTest/Module2.cls as cls
Imported class: UnitTest.Module2
Load finished successfully.
Compilation started on 12/06/2022 09:18:01 with qualifiers 'ckd'
Compiling class UnitTest.Module2
Compiling routine UnitTest.Module2.1
Compilation finished successfully in 0.018s.
(root) begins ...
LogStateStatus:0:Finding directories: ERROR #5007: Directory name '/prod/iris/mgr/.modules/DEPOLY/myapp/1.0.3/tests/UnitTest/' is invalid <<==== FAILED (root)::
(root) failed`
Running zpm "package myapp -v" shows the issue is in the packaging phase: Exporting 'UnitTest.Module2.cls' to '/prod/iris/mgr/Temp/dirOUhCWa/myapp-1.0.3/tests/tests/UnitTest/Module2.cls'
When packaging an app with a unit test defined as results in Unit Tests that will not run outside of the developer namespace.
zpm "test myapp -v"
`Load of directory started on 12/06/2022 09:18:01
Loading file /prod/iris/mgr/.modules/DEPOLY/myapp/1.0.3/tests/tests/UnitTest/Module2.cls as cls
Imported class: UnitTest.Module2
Load finished successfully.
Compilation started on 12/06/2022 09:18:01 with qualifiers 'ckd'
Compiling class UnitTest.Module2
Compiling routine UnitTest.Module2.1
Compilation finished successfully in 0.018s.
(root) begins ...
LogStateStatus:0:Finding directories: ERROR #5007: Directory name '/prod/iris/mgr/.modules/DEPOLY/myapp/1.0.3/tests/UnitTest/' is invalid <<==== FAILED (root)::
(root) failed`
Running zpm "package myapp -v" shows the issue is in the packaging phase:
Exporting 'UnitTest.Module2.cls' to '/prod/iris/mgr/Temp/dirOUhCWa/myapp-1.0.3/tests/tests/UnitTest/Module2.cls'
Updating %ZPM.PackageManager.Developer.Processor.Default.Package method OnItemRelativePath
from:
} else { Set tSourceRoot = ..Directory }
to:
} else { Set tSourceRoot = "" }
results in the expected export path and tests that run in both the developer and deployment namespaces
The text was updated successfully, but these errors were encountered: