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
beforeSuite seems to run always, indecent of focus #499
Comments
Ooh, very good point--thanks for bringing this up @angerman! 👍 I'm actually not sure which would be less surprising to users:
I've always thought of I'm open to other viewpoints, though! What do you think? |
Apart from As I understand it, I never read As far as I see, I can not not use |
Hmm, you make a good point. As long as I'd say the solution here would be:
@angerman, would you be interested in implementing this behavior? No worries if not, I'm just curious if you'd like to take this opportunity to contribute! I'd be happy to give any pointers you may need. ⛵ |
That sounds like a great idea! @modocache I think. I have to decline on implementing it, as I would not be able to commit to it in timely manner :-( |
@angerman No worries! If you ever have some spare time and this issue is still open, feel free to comment here. 😄 |
Hey @angerman! Would you be available to implement this behaviour now? |
I'm trying to create some UI automation with Quick and I found it's necessary to have Regardless of which solution would work, for UI tests I'd prefer all test cases to run in the order they are defined. So I can divide a workflow into multiple pieces with meaningful descriptions, instead of piling them up in one huge Any other ideas worth trying? |
When I need my XCTestCase subclasses to run in a specific order, I name them like so:
This ensures that |
@modocache does this still work with latest XCode? In my test the order is random, not alphabetically any more. |
IIRC, Xcode randomizes the order unless a failure occurs, then it seems to have some (mostly) constant order.
Thanks,
Jeff
…Sent from my iPhone
On May 3, 2017, at 11:41 AM, Haitao Li ***@***.***> wrote:
@modocache does this still work with latest XCode? In my test the order is random, not alphabetically any more.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Wow, is that a recent change? I could have sworn this used to work. |
I believe it's a recent change. |
Say we have
and
doSomething()
is called, even though it's independent of the tests to be executed only.The text was updated successfully, but these errors were encountered: