I am using TFS and have a Test Plan. All of the tests in the plan are automated. When creating a test plan, a Release must be created with a Visual Studio Test task included. That has worked until now, but there are a few things that we wanted to do along with running the tests. Specifically, we are replacing some tokens in a .runsettings file and then deleting the file after the tests have run.
I wanted to encapsulate all of that functionality in a Task Group since it seems like a common task that we will want to use often. Rather than having to add each task and configure them, a user could add the Task Group, set some parameters, and it just works.
When I try to execute a Test Run, I get this error
Validating environment:The Visual Studio Test task in the environment you selected is not the correct version, or has incorrect settings.
I am assuming that the issue is that I dont have a Visual Studio Test task included in my Release definition, but that is because the Task is included in my Task Group. Is there any way for this to work? I want to run automated tests while the Visual Studio Test task is part of a Task Group.
It looks like someone has requested this functionality on UserVoice, but I was hoping that there was a workaround. https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/33921664--test-run-step-not-detected-in-test-hub-when-in-t
Thanks