I had some challenges to get AL Test Runner to work on my machine, I had to do some changes to the source to help me understand what the issues was.
Added a new configuration in launch.json, to help with debugging the PowerShell module
There were some places that just gave med an error from ConvertFrom-Json, caused by the input was not json formatted, instead of the root issue.
Added some special treament to the Unable to read data from the transport connection error message, since that is not too obvious to interpret
I'm using my machine to develop our pipelines, using BcContainerHelper. In those pipelines we do not always use latest&greatest of BcContainerHelper (historically that gave us problems when Freddy introduced new behavior now and then). Because of this, I do not want the BcContainerHelper module to be installed on the machine, but I instead execute BcContainerHelper.ps1 from the BcContainerHelper folder each time I want to load that module.
To make this work together with AL Test Runner, I added a new, optional, setting: customBcContainerHelperScriptPath
If this setting is configured, that script will be executed instead of calling Import-Module
The VSIX generated from this project was larger than I thought it should be (around 2.8MB), so I had a look through the dependencies and found out that the system-sleep module caused a majority of that size - and it did not seem to be used at all (any longer, I assume 🙂)
After removing that module, the VSIX shrunk from 2.8MB to 0.3MB, which shouldn't be a bad thing from a performance point of view
I had to change the casing of some imports to get the project to compile. I assume that this is due to some changes of casing in the file names and the fact that Windows FS is case insensitive, but Git is case sensitive. I'm afraid that you need to clone your project again to get the same casing as in the repository... (or doing a two-step rename of the files with commits in between)
I hope you could consider including above changes. 🙂
I had some challenges to get AL Test Runner to work on my machine, I had to do some changes to the source to help me understand what the issues was.
ConvertFrom-Json
, caused by the input was not json formatted, instead of the root issue.Unable to read data from the transport connection
error message, since that is not too obvious to interpretBcContainerHelper.ps1
from the BcContainerHelper folder each time I want to load that module.customBcContainerHelperScriptPath
Import-Module
system-sleep
module caused a majority of that size - and it did not seem to be used at all (any longer, I assume 🙂)I hope you could consider including above changes. 🙂
Just let me know if you have any questions
Cheers Johannes