-
Notifications
You must be signed in to change notification settings - Fork 136
Travis - OSX CI #96
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
Travis - OSX CI #96
Conversation
|
|
Ok - I honestly dont know what is going on - I've pushed one commit just to enable building on my travis and in result: my travis reported 6 errors and cucumber travis (with the same code) reported 3 errors, when there was only one error with previous build (with the same code...) |
Now after rerun - 5 fails |
@konserw when running |
In fact the number varies upon launch, now I have 8 fails. |
Glad to know it fails locally on OSX, so it can be "easily" debugged. The randomness of failures make me think that Cucumber-CPP doesn't have time to create the socket before Cucumber-Ruby tries to connect. In
To verify if this is the problem, a "sleep 1" before the Ideally I'd wait for a message to be displayed but there are no log messages. We could introduce in
...then changing the Ruby method |
I just tried adding the |
This SHOULD (not tested!) wait at most one second for output on either standard output or error, and verifies that it starts with Listening:
|
The |
Here it is: paoloambrosio/cucumber-cpp@757796a. |
I've just changed std::cerr in main.cpp to std::cout yesterday, |
I should have used clog to be correct, even if both clog and cerr are redirected to the stderr. |
@paoloambrosio I checked out paoloambrosio/cucumber-cpp@757796a but I have the following error:
|
So maybe my solution with just sleep on osx is best? |
Don't pull my changes in yours yet but sleep is not the right option when testing async systems. I'll try and run them on OSX to find what is wrong. |
above you can see tries using PTY to execute cucumber-cpp - all failed |
I just realized that if your solution (paoloambrosio/cucumber-cpp@757796a) failed was because I still had a processus running. When re-running the feature target, I had the same result that before: a variable number of test failing. |
…es target in OSX
I'm closing this PR as I've created better: #104 |
My try on enabling OSX CI on travis. There are 2 issues:
a) remove that target from osx ci
b) fix it somehow
c) drop cucumber-tck altogether?