Git Product home page Git Product logo

Comments (7)

tyronewilson avatar tyronewilson commented on August 26, 2024

Nope, doesn't sound like the intended behaviour to me. What do you get if you run

rake protractor:spec && rake protractor:cleanup ?

I know we have been playing with some optional args and things lately with the later releases so one of those features might have broken this convenience function.

What version of protractor-rails are you using?

from protractor-rails.

sambou avatar sambou commented on August 26, 2024

I'm using 0.0.8.
Running rake protractor:spec && rake protractor:cleanup also didn't work for me.

from protractor-rails.

tyronewilson avatar tyronewilson commented on August 26, 2024

Do you mean that there are still fixtures in your database after running
that?

On Wed, Nov 19, 2014 at 4:55 PM, Sami [email protected] wrote:

I'm using 0.0.8.
Running rake protractor:spec && rake protractor:cleanup also didn't work
for me.


Reply to this email directly or view it on GitHub
#19 (comment)
.

from protractor-rails.

sambou avatar sambou commented on August 26, 2024

Yeah, there are fixtures in there (which i would have expected after seeding it ;) ). However, there is also still test data in there as well (in my case for instance a test user that is created after a successful signup).
Judging from the output in my terminal im guessing the cleanup task simply didn't run.

Output:

Finished in 24.521 seconds
11 tests, 7 assertions, 1 failure

14:45:52.422 INFO - Executing: [delete session: 9120786f-c43f-45fd-9ca3-90268a71a95c])
14:45:52.995 INFO - Done: [delete session: 9120786f-c43f-45fd-9ca3-90268a71a95c]
Waiting to shut down cleanly.........
killing running protractor processes
kill protractor rails tests server...
kill: 5435: No such process
kill webdriver server...
kill: 5441: No such process
kill left over selenium processes...
Selenium Standalone has exited with code null
kill: 5447: No such process

from protractor-rails.

fdibartolo avatar fdibartolo commented on August 26, 2024

I have noticed the same. Looks like the spec task is not completing ok, even though nothing is spit at the log, that makes the cleanup task not to get fired.
For instance, if you run rake protractor:spec && rake protractor:cleanup won't work either, but if you do rake protractor:cleanup && rake protractor:spec does indeed work.

One thing that caught my eye was pid's not found while attempting to kill them (like you show above). I have just created pull request #23 to fix that.

from protractor-rails.

tyronewilson avatar tyronewilson commented on August 26, 2024

Awesome. Thanks!

On 00:11, Thu, 1 Jan 2015 Fernando Di Bartolo [email protected]
wrote:

I have noticed the same. Looks like the spec task is not completing ok,
even though nothing is spit at the log, that makes the cleanup task not
to get fired.
For instance, if you run rake protractor:spec && rake protractor:cleanup
won't work either, but if you do rake protractor:cleanup && rake
protractor:spec does indeed work.

One thing that caught my eye was pid's not found while attempting to kill
them (like you show above). I have just created pull request #23
#23 to fix that.


Reply to this email directly or view it on GitHub
#19 (comment)
.

from protractor-rails.

fdibartolo avatar fdibartolo commented on August 26, 2024

Hey guys, I have just submitted pull request #24 which I believe should take care of this issue. What I am seeing is that spec task is always running system exit, preventing cleanup task to actually run afterwards.

from protractor-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.