-
Notifications
You must be signed in to change notification settings - Fork 64
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
Unify Native and Core behaviour #131
base: master
Are you sure you want to change the base?
Conversation
@deanWombourne yes it does contradict that change but I think it encourages a bad practice (we actually do have such tests which rely on the order of execution and fail when run separately). Also I think cucumber itself does not guarantee tests order and that's made on purpose. |
@ilyapuchka I agree - tests shouldn't really on each other. However, I'm loath to change this without at least knowing why we were asked to implement it. Also, looking at cucumber, it's default behaviour is what we have implemented at the moment (i.e. scenarios are run in the order they are found in the feature file) and while I agree or disagree with that, one of the guides I use when deciding what to do is 'what does cucumber do'! |
Yes, if I remember correctly at the time I was working on a project with feature parity between iOS and Android. On Android we were using Cucumber and I noticed the order of execution was different between platforms (for some reason iOS was sorting them backwards, but that got fixed in PR #35). I agree with @ilyapuchka that we should avoid (aiding in) transferring state between tests, but on the other hand it is also just natural and cucumber like to run the examples/scenarios as they are specified. Even if you remove sorting XCTest will still execute the tests in alphabetical order, I think, unless you explicitly add scrambling logic to avoid that. Actually, there is a new feature to randomise the execution order of tests in Xcode, maybe you could use that feature to remove the ordering instead of removing it from the XCTest-Gherkin lib all together @ilyapuchka ? |
I'm not sure that will work with tests created at runtime (from native feature files). |
Resolves #124
There are currently several differences in behaviour of "Native" and "Core" scenarios:
xcodebuild test
with-only-testing
parameter.It would be better if "native" and "core" behave similarly, especially if we are moving in the direction of generating "core" tests from "native" tests.