To select specific tests within your build for Accessibility testing, you can use includeTagsInTestingScope and excludeTagsInTestingScope under the accessibilityOptions key in the browserstack.yml file.
First, you need to add tags to your test cases.
Then, you can add the tags under includeTagsInTestingScope to select these test cases for Accessibility testing. Alternatively, you can exclude test cases by using tags under excludeTagsInTestingScope.
A sample configuration is as follows:
accessibilityOptions: includeTagsInTestingScope: ['critical', 'p0'] # Tags for test cases to include excludeTagsInTestingScope: ['old', 'deprecated'] # Tags for test cases to exclude
For more information, refer to these instructions.