How to get the code override when testing Silverlight

I am looking for a code coverage solution that works with silverligt. It must also use msbuild because we automatically run all other unit tests in the build server.

Integration with Visual Studio and/or resharper is a plus. I don’t have any objections to easy setup or pointers to tutorials. I usually don’t modify the build files, unfortunately I don’t have time to learn msbuild for the time being.

Unfortunately, due to the transparent security model of the Silverlight runtime (that is, all applications are sandboxed), this It is not an easy task. The traditional .NET code coverage tester modifies the underlying assembly and inserts the P/Invoke call into the coverage collection tool.

So, like Visual Studio 2008 code coverage Tools such as measurement tools cannot be used with Silverlight.

To accomplish this in Silverlight, you need to design a custom inspection program, as well as methods for collecting and reporting data.

In the Silverlight team, we have developed a partial solution that can enable this feature for some people, but it is not yet ready to be released. It is possible to find it in the Silverlight Toolkit, maybe.

Sorry, I don’t today Know your answer.

I am looking for a code coverage solution that works with silverligt. It must also use msbuild because we automatically run all other units in the build server Test.

Integration with Visual Studio and/or resharper is a plus, I don’t have any objections to easy setup or pointers to tutorials. I usually don’t modify the build files, unfortunately I don’t have any for the time being Time to learn msbuild.

Unfortunately, due to the transparent security model of the Silverlight runtime (i.e. all applications are sandboxes), this is not one piece Easy thing. The traditional .NET code coverage tester modifies the underlying assembly and inserts the P/Invoke call into the coverage collection tool.

So, like the Visual Studio 2008 code coverage measurement tool The tool cannot be used with Silverlight.

To be used in Silverlig To complete this operation in .ht, you need to design a custom detection program, as well as a method of collecting and reporting data.

In the Silverlight team, we have developed some solutions that can enable this for some people. Feature, but it is not ready to be released. It is possible to find it in the Silverlight Toolkit, maybe.

Sorry, I don’t know your answer today.

Leave a Comment

Your email address will not be published.