Best Practice for Visual Studio Projects and Tests

2 posts, 0 answers
  1. Brad Hunt
    Brad Hunt avatar
    4 posts
    Member since:
    Jan 2010

    Posted 05 Apr 2019 Link to this post

    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!

  2. Elena
    Admin
    Elena avatar
    1223 posts

    Posted 10 Apr 2019 Link to this post

    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
     
Back to Top