Running Unit Tests End With - “The specified module could not be found”
Running Unit Tests End With - “The specified module could not be found”
“The specified module could not be found. (Exception from HRESULT: 0x8007007E)”
Some times your test relay on additional file that need to be in the same folder where Team System running the Test.
Those files can’t be add into the GAC and you can’t copy them manually each time.
So What Do Do?
We need to use Deployment settings
Deployment settings specify deployment location and any file to be deploy in the addition to the target assemblies
Open Test Configuration – Right click on Test Menu –> “Edit Test Run Configuration” –> “Local Test Configuration”
Select “Deployment” and check “Enable deployment”.
Add Folder/File to be deploy with your test.
Take Notice - If the deployment item are big (size) this will effect the run speed.