Code Coverage Error
adam_hafner
Posts: 66 Silver 2
in SQL Test
I am trying to use SQL Test on the test tSQLt database and the tests complete correctly, but the code coverage errors. The error is as follows:
Here are the software versions I am running:
SSMS - 20.2.30.0
SQL Test - 4.1.20.3489
Can you please let me know how to resolve this issue?
Thanks,
--Adam
System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at SQLCover.Parsers.StatementParser.GetChildStatements(String script, Boolean quotedIdentifier) at SQLCover.Source.DatabaseSourceGateway.GetBatches(List`1 objectFilter, List`1 filteredObjects) at SQLCover.CodeCoverage.GenerateResults(List`1 filter, List`1 xml, List`1 filteredObjects) at SQLCover.CodeCoverage.Stop() at RedGate.SQLTest.tSQLt.Cover.SqlCoverTracker.Stop()There was a similar issue reported that @Jon_Kirkwood responded to that required a new version of SQL Test (https://forum.red-gate.com/discussion/89558/code-coverage-error#latest). I have tried uninstalling/reinstalling SQL Test and that had no effect.
Here are the software versions I am running:
SSMS - 20.2.30.0
SQL Test - 4.1.20.3489
Can you please let me know how to resolve this issue?
Thanks,
--Adam
Tagged:
Answers
Thanks for reaching out on the Redgate forum, and sorry to hear this error is occurring for you. I had a look over my old post and can see the dev fix that was done around then. Hopefully this isn't a regression.
I noticed that there was another recent release of SQL Test - before I escalate to the team, can you patch to
V4.1.21 and confirm that the error is still occurring for you
Download link for that version is available here:
https://download.red-gate.com/checkforupdates/SQLTest/SQLTest_4.1.21.3620.exe
Shall escalate and come back via this forum post with any updates as they are made available
Here is one of the forks (https://github.com/sayantandey/SQLServerCoverage)