Open tombvo opened 2 years ago
@tombvo The namespace from the namespace
option is only used if the managed
option is also set to True.
In the context of an org with an installed package from that namespace, the task will automatically consider managed
to be true by default. But it looks like you are in a namespaced scratch org where you need the namespace but there is not an installed package with that namespace. You should be able to make it work by manually setting the managed
option to True
.
@davidmreed It looks like we could make this task work a bit more intuitively with namespaced scratch orgs.
I agree that this is a bug. Tracking as W-10729382. In the meantime, the workaround @davisagli mentioned should cure the issue.
Describe the bug
The tasks
run_tests
does not query for the namespace it was given.We defined the namespace via cumulus.yml like that:
and ran
cci task run run_tests --org dev
afterwards. The output was the following:We are not sure why we get
NamespacePrefix = null
as result.If i run
cci task info run_tests
"neo_umd" is set as default for namespace and "%Test" is set as default for test_name_match. That means, the definition in the cumulus.yml is correct.We have also tried running the command with manual parameters like that:
cci task run run_tests --org dev --namespace 'neo_umd' --test_name_match '%Test'
but we get the same result as above.
could it maybe be the cumulus.yml scratch org definition with
namespaced:true
which doesnt allow the apex tests?Reproduction steps
cci task run run_tests
against an org with the namespace parameter attached manually or defined in cumulus.ymlYour CumulusCI and Python versions
Test Person 1 CumulusCI version: 3.52.0 Python version: 3.9.0 sfdx: sfdx-cli/7.138.1 win32-x64 node-v16.14.0
Test Person 2 CumulusCI version: 3.49.0 Python version: 3.9.0 sfdx: sfdx-cli/7.120.0 win32-x64 node-v16.13.1
Operating System
Windows 11
Windows environment
PowerShell
CumulusCI installation method
pipx
Error Gist
No response
Additional information
No response