-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to launch Test Runner (InvokeMethodOnNull, PropertyNotFoundStrict) #85
Comments
The only things that I can notice:
|
I didn't notice that the extension was using the launch settings of the main app, not the test app. I've reorganized the settings, deleted the config, updated AL Test Runner again and restarted VS Code. Here is {
"version": "0.2.0",
"configurations": [
{
"name": "changelog",
"type": "al",
"request": "launch",
"server": "http://changelog",
"serverInstance": "BC",
"port": 7049,
"tenant": "default",
"authentication": "UserPassword"
},
{
"name": "ll-bc-at",
"type": "al",
"request": "launch",
"server": "http://ll-bc-at",
"serverInstance": "BC",
"port": 7049,
"tenant": "default",
"authentication": "Windows"
}
]
} And here is the config file for the extension: {
"containerResultPath": "C:\\ProgramData\\BcContainerHelper",
"launchConfigName": "changelog",
"securePassword": "[Hash]",
"userName": "admin",
"companyName": "CRONUS AT",
"testSuiteName": "",
"vmUserName": "",
"vmSecurePassword": "",
"remoteContainerName": "",
"dockerHost": "",
"newPSSessionOptions": "",
"testRunnerServiceUrl": "",
"codeCoveragePath": ".//.altestrunner//codecoverage.json",
"culture": "en-US"
} I no longer receive the error - however, it looks like it's still not working. PS C:\CGK.ChangeLog\Cegeka Change Log.Test> if ($null -eq (Get-Module ALTestRunner)) {Import-Module "c:\Users\Jakob.Gillinger\.vscode\extensions\jamespearson.al-test-runner-0.8.4\PowerShell\ALTestRunner.psm1" -DisableNameChecking}
PS C:\CGK.ChangeLog\Cegeka Change Log.Test>
PS C:\CGK.ChangeLog\Cegeka Change Log.Test> cd "c:\CGK.ChangeLog\Cegeka Change Log.Test"
PS C:\CGK.ChangeLog\Cegeka Change Log.Test> Invoke-ALTestRunner -Tests All -ExtensionId "18ef0632-396e-4417-b441-ee883528e343" -ExtensionName "Cegeka Change Log.Test" -LaunchConfig '{"name":"changelog","type":"al","request":"launch","server":"http://changelog","serverInstance":"BC","port":7049,"tenant":"default","authentication":"UserPassword"}'
Importing module bccontainerhelper
BcContainerHelper version 4.0.14
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running tests on changelog, company CRONUS AT, tenant default, extension Cegeka Change Log.Test, test runner 130450, culture en-US
Connecting to http://localhost:80/BC/cs?tenant=default&company=CRONUS%20AT
Codeunit 78000 Changelog Action Test CCL Skipped
Copy from container changelog (C:\ProgramData\BcContainerHelper\38fc76b3-1efe-4105-8257-86be5e4ba65b.xml) to C:\CGK.ChangeLog\Cegeka Change Log.Test\.altestrunner\38fc76b3-1efe-4105-8257-86be5e4ba65b.xml
PS C:\CGK.ChangeLog\Cegeka Change Log.Test> It looks like it's connecting to |
I am unable to start the Test Runner, either through a single Test or an entire Test Codeunit. I encounter the following error:
Here is my
.altestrunner/config.json
:And here is my
launch.json
.The text was updated successfully, but these errors were encountered: