This is a migrated thread and some comments may be shown as answers.

Best Practice for Visual Studio Projects and Tests

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brad Hunt
Top achievements
Rank 1
Brad Hunt asked on 05 Apr 2019, 09:35 PM

We have existing web projects including Sitefinity sites that we would like to test. What is the best practice for adding tests to an existing site? Should the tests be added in the existing csproj and just put in their own folder?

Or would it be best to add a second project to the overall solution? Or is there any published guidance on this topic you can point me to?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 10 Apr 2019, 03:16 PM
Hello Brad,

Thank you for your interest in Test Studio. 

Actually there is no common guidance on the suggested topics as there are few possible options and it is up to you and the requirements you need to cover. However, I will share some ideas with you and we can continue the discussion then in any of the mentioned directions. 

I noticed you have activated trial for Test Studio Ultimate product, which includes both the standalone application and the Visual Studio plugin. So, first step should be to decide which of the two products will suit you better - here you can find a list of the supported features in both licences to help you decide which will better cover your needs. 

In both cases - whether you decide to go for the standalone application or the Visual Studio plugin, you need to have a separate project for the tests. Here is how to create a project in Test Studio standalone and here is the same in Visual Studio plugin. I will recommend you keep the Visual Studio plugin test project separated from the web app solution to avoid any possible errors in the development process, which are not related to the tests. Basically, the test project is not using the source code of the page, so it is not required to keep these in the same solution. 

I hope the above information will be helpful for you to decide where to start. Though, in case you still have any doubts and need additional assistance, please do not hesitate to get back to me with any questions on the topic. 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Brad Hunt
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or