This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
The test suite kills any process (including itself) if its path contains string 'dredd-hooks' (e.g. in dir name) #6
Comments
Looks like it's because the PID search isn't very bulletproof. If my working folder contains string
Workaround: puts "Killing server..."
system "for i in `ps axu | grep 'server.rb' | grep ruby | awk '{print $2}'`; do kill -9 $i; done > /dev/null 2>&1"
puts "Killing handler..."
system "for i in `ps axu | grep 'dredd-hooks' | grep -v 'cucumber' | grep ruby | awk '{print $2}'`; do kill -9 $i; done > /dev/null 2>&1" (See the |
honzajavorek
changed the title
The test suite probably kills itself under some circumstances
The test suite kills any process (including itself) if its path contains string 'dredd-hooks' (e.g. in dir name)
Feb 10, 2016
12 tasks
gonzalo-bulnes
added a commit
to apiaryio/dredd-hooks-ruby
that referenced
this issue
Jan 26, 2017
I had removed it in c9c31d9 This version of the scripts should also fix the Travis CI build: see apiaryio/dredd-hooks-template#6 (comment)
gonzalo-bulnes
added a commit
to apiaryio/dredd-hooks-ruby
that referenced
this issue
Jan 26, 2017
I had removed it in c9c31d9 This version of the scripts should also fix the Travis CI build: see apiaryio/dredd-hooks-template#6 (comment)
gonzalo-bulnes
added a commit
to apiaryio/dredd-hooks-ruby
that referenced
this issue
Jan 26, 2017
Prevent Cucumber from being killed prematurely. Curiously, the workaround descibed in apiaryio/dredd-hooks-template#6 (comment) did not work... and more curiously, not killing the handler doesn't seem to disturb the following scenarios.
5 tasks
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Running
bundle exec cucumber
outputson my computer (Mac). I debugged that it's caused by following lines in
features/support/env.rb
:If I comment out the two "killing" lines, I can run Cucumber without problems, but then it seems to hang in the
Feature: TCP server and messages / Scenario: Message exchange for event beforeEach / And I send a newline character as a message delimiter to the socket
part:Nothing gets printed since that moment for very long time and I have to eventually interrupt Cucumber with Ctrl+C.
The text was updated successfully, but these errors were encountered: