1

We are building a sitecore web application and unit test is based on MSTest. I had a look at link below which has asp.net nunit test runner: http://www.codeflood.net/testrunner/

However, we don't want to use the nUnit framework for out of box MSTest suit. Could someone please help if there's any existing test runner or how easy it is to convert the nUnit Test runner to MSTest runner?

The reason we want to use the test runner is to run unit test with in HTTPContext.

1 Answer 1

3

According to this stackoverflow post the API used by MSTest is sealed and private which is not going to help you in exposing a test runner that mimics the NUnit TestSuiteBuilder functionality.

It could still be done via Reflection if you are determined enough but it might just be simpler to use the technical restrictions around MSTest to build a case to migrate your unit tests that require a Sitecore context to NUnit.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.