I have followed How to Run Karate API tests on Azure pipelines to set up karate on azure pipeline.
We need to first start up the application in order to run karate tests.
Imagine I have a dev api publicly available and I have some new changes to merge in.
It still doesn’t make sense to test on this dev environment because the new karate test cases on the new features are not yet available on dev and of course the karate tests will fail.
If we look at example projects they all excluded the karate test files. What is the reason to exclude them? Shouldn't we include them instead so the karate test run during pipeline?
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> <configuration> <excludes> <exclude>karate/**/*.java</exclude> </excludes> <includes> <include>com/**/*.java</include> </includes> </configuration> </plugin>