Include synchronized Test Cases to a Test Suite (deprecated)
Last updated
Was this helpful?
Last updated
Was this helpful?
With SpecSync v5 the remote/testSuite
setting described here has been deprecated.
For including synchronized Test Cases to a Test Suite, please use the feature.
For ensuring that SpecSync can detect local test case deletions, please use the feature.
The can also be used to upgrade this setting for v5.
To be able to easily find these synchronized test cases in Azure DevOps, they can be added to test suites. SpecSync can automatically add/remove the synchronized test cases to a test suite. For this you have to specify the name or the ID or the name of the test suite in the configuration.
Create a "Static suite" (e.g. "BDD Scenarios") in Azure DevOps. (For that you have to navigate to "Test plans" and create and select a test plan first.)
Specify the name of the test suite in the remote/testSuite/name
entry of the specsync.json
file. (Alternatively you can specify the ID of the suite in remote/testSuite/id
. The suite names are not unique in Azure DevOps!)
Make sure that the project compiles and the tests pass.
Run the synchronization again:
As a result, SpecSync adds the synchronized test cases to the test suite.
If you specify a test suite name that does not exist, SpecSync creates a test suite first (under the first test plan).
When a scenario is removed from the feature file, SpecSync will also remove the linked Test Case from the Test Suite. In that case the Test Case related to the missing scenario is not deleted but tagged with specsync:removed
. You can review the Test Cases of this tag and delete them manually. (The tag is removed from the Test Case if the scenario is restored.)