Skip to content
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

Specifying testRunnerCodeunitId is not supported when using the C/AL test runner (BC14) #63

Closed
BernhardReu opened this issue May 12, 2022 · 2 comments
Assignees

Comments

@BernhardReu
Copy link

Version: 0.7.7

When executing a test for BC14 with the newest version of al-test-runner it throws the following error:
Specifying testRunnerCodeunitId is not supported when using the C/AL test runner

It has been working great so far with previous versions, and after rolling back to 0.6.3 I am able to execute the test(s) again.

I looked at the recent changes and guess it could have something to do with the new default value of the TestRunnerCodeunitId in Invoke-RunTests.ps1 in combination with the fact that the paramater is only added if it is greater 0 in the config at Invoke-ALTestRunner.ps1:

    if ((Get-ValueFromALTestRunnerConfig -KeyName 'testRunnerCodeunitId') -gt 0) {
        $Params.Add('TestRunnerCodeunitId', (Get-ValueFromALTestRunnerConfig -KeyName 'testRunnerCodeunitId'))
    }
@jimmymcp jimmymcp self-assigned this May 12, 2022
jimmymcp pushed a commit that referenced this issue May 12, 2022
@jimmymcp
Copy link
Owner

Thanks, should be fixed in 0.7.8 - deploying at the moment...

@BernhardReu
Copy link
Author

Wow, that was quick, thank you!
And thanks for making TDD for BC development possible with this extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants