-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reporter "progress-bar" is not compatible with Gradle #1043
Comments
Hello, it looks like the error itself is brought up before Cucumber starts. The reason can be related to the fact that you have an error in the code: IMO it's not a bug related to CucumberJS. It's just the protractor that refuses to launch due to the error in codebase (not in the tests, but perhaps in some Cheers! |
Oh However, you gave me a good idea, something I should have thought of before: I run Protractor tests via Gradle, which is notorious of its special way of handling standard I/O channels. So I will run some tests to confirm that is indeed just a problem of that. |
I can confirm this is an issue when I execute BDD tests via Gradle:
I'm wondering if we can do something about it... For now disabled |
Progress-bar does have some dependencies in order for it to work as it clears previously written lines to the terminal Thus it should only be run on stdout in a terminal that can delete previous lines. We can update cucumber so that if you try to use progress-bar where it would error in this way, it warns about it and switches to progress? |
Even without
This time, if I disable the |
@charlierudolph, answering your question, I'd leave that choice to you. For me it is more important that testing works somehow (personally, along with the JSON reporter). Reporting progress on console is only a convenience that we like when implementing steps. |
The error you posted for |
Similar in the sense that I get no summary like how many scenarios and steps were executed, and there is no JSON report, and the browser is not closed. And somehow |
I can't imagine any difference between the progress / json formatters causing an error. Is this consistent that the progress formatter always causes the error? Have you posted this issue on |
Just reported the |
The other issue got concluded, only the |
Fixed in which switches from progress-bar to progress if the stream is not a TTY. 0415dde. Please let me know if that fixes it |
Seems still not to be working. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary was: Timeouts make Protractor exit prematurely
Let's say the application cannot communicate to the backend so my test times out like this:
Then I see no error reporting at all, which I need, even in this case.
I don't know if this is a bug of Protractor (e.g. as in this case: angular/protractor#2790), or Cucumber-js, or protractor-cucumber-framework, or even my test (I'm always returning the last promises in step definitions), I need directions.
Thanks in advance.
Using Cucumber version 3.2.1.
This issue is important also because it does not close Chrome & ChromeDriver at all, which is really bad for CI builds.
The text was updated successfully, but these errors were encountered: