-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/italktothewind/karate-test-run-issue #1050
Comments
your pom is not a simple example. also you still haven't followed the instructions, for e.g. what is the command you run, it is missing but 3 options
please follow instructions clearly next time |
The pom is minimal. I'm using Failsafe instead of Surefire because they are integration tests so there are not *Test but *IT. Also, in the issue it was mentioned what command has to be used: mvn clean install. About the options:
|
Hmmm, I have to said, however, that when I change:
with a newer one:
Again I have:
|
I tried with 0.9.5 (the latest) and now I have:
Probably there was some issue with version 0.9.2 |
my bad, I missed that you actually had and sorry, I don't agree that the pom is minimal. I will update the instructions, so that people don't do what you did in the future :) we recommend that Karate tests be normal tests, if you go down the IT route, you are on your own, see this comment: #911 (comment) |
It is very reasonable to think of Karate tests as integration tests. In fact, most of the times you need to setup some environment before running them, at least something that listens to http requests. A good idea is to start the environment in pre-integration tests and tear it down in post-integration tests. So, you guess it! The best place to run Karate tests is in integration-tests maven phase and these kind of tests use IT convention. |
@italktothewind I guess you haven't even read the link in my comment :) all this is good in theory, the reality is quite different, but if you end up with a good sample of integration tests, let me know and I will add it to the documentation as a link / reference. |
Hi,
I followed the recommended folder structure in: https://github.com/intuit/karate#folder-structure
One of the feature files (common.feature) was created to be called by other feature files (like example.feature), but it is being counted as a test ("Tests run: 2")
I uploaded a minimum working example here (just run mvn clean install):
https://github.com/italktothewind/karate-test-run-issue
I don't know if it is a bug or am I doing something wrong, thanks!
The text was updated successfully, but these errors were encountered: