Test Runner
I'm confused, how do I avoid a "circular reference" when using the SDK Test runner.
Since the web app needs a reference to the test project to load the tests, but the test project needs a reference to the web app to run any custom code...
For example how would I reference a controller from the test project?
Hi,
The project that has tests included uses our Sitefinity API and it has references to Sitefinity, but these references are to to our DLLs, not to the SitefinityWebApp project itself. So the project with tests does not need a reference to the SitefinityWebApp to run any custom code and there won't be a circular reference.
Regards,
Stefani Tacheva
Telerik
Stefani, thanks for your response.
My question is if I was testing an MVC controller for example that existed inside the SitefinityWebApp itself, how would I reference it?
Hi,
You need to build the SitefinityWebApp project and add a new reference: SitefinityWebApp dll (not the project itself) to the Test Project.
Regards,
Stefani Tacheva
Telerik