Git Product home page Git Product logo

Comments (8)

rwjblue avatar rwjblue commented on July 23, 2024

Sounds like #32, can you confirm?

from ember-cli-code-coverage.

alexlafroscia avatar alexlafroscia commented on July 23, 2024

Possibly? I don't get any failing tests though, which that issue seems to have. The entire suite runs, the process just never exits.

from ember-cli-code-coverage.

alexlafroscia avatar alexlafroscia commented on July 23, 2024

I can't even get things working on a fresh addon

$ ember addon demo-addon
$ cd demo-addon
$ ember install ember-cli-code-coverage
$ ember test
ok 1 PhantomJS 2.1 - JSHint | app.js: should pass jshint
ok 2 PhantomJS 2.1 - JSHint | helpers/destroy-app.js: should pass jshint
ok 3 PhantomJS 2.1 - JSHint | helpers/module-for-acceptance.js: should pass jshint
ok 4 PhantomJS 2.1 - JSHint | helpers/resolver.js: should pass jshint
ok 5 PhantomJS 2.1 - JSHint | helpers/start-app.js: should pass jshint
ok 6 PhantomJS 2.1 - JSHint | resolver.js: should pass jshint
ok 7 PhantomJS 2.1 - JSHint | router.js: should pass jshint
ok 8 PhantomJS 2.1 - JSHint | test-helper.js: should pass jshint

1..8
# tests 8
# pass  8
# skip  0
# fail  0

# ok

$ COVERAGE=true ember test
ok 1 PhantomJS 2.1 - JSHint | app.js: should pass jshint
ok 2 PhantomJS 2.1 - JSHint | helpers/destroy-app.js: should pass jshint
ok 3 PhantomJS 2.1 - JSHint | helpers/module-for-acceptance.js: should pass jshint
ok 4 PhantomJS 2.1 - JSHint | helpers/resolver.js: should pass jshint
ok 5 PhantomJS 2.1 - JSHint | helpers/start-app.js: should pass jshint
ok 6 PhantomJS 2.1 - JSHint | resolver.js: should pass jshint
ok 7 PhantomJS 2.1 - JSHint | router.js: should pass jshint
ok 8 PhantomJS 2.1 - JSHint | test-helper.js: should pass jshint

and from there, it hangs

from ember-cli-code-coverage.

alexlafroscia avatar alexlafroscia commented on July 23, 2024

Tried updating to [email protected] and re-generating the addon, but no luck there...

I'm wondering if something weird is happening by calling Testem.afterTests. It seems weird that the pause happens before the summary of 1..8 etc etc, like Testem isn't getting the message that it needs to finish up.

Nope. The Testem source code seems to be set up to handle multiple afterTests callbacks just fine...

from ember-cli-code-coverage.

alexlafroscia avatar alexlafroscia commented on July 23, 2024

Aaaaand it seems to be a Phantom issue. @kategengler's comment here inspired me to try that out and, sure enough, if I set Testem to run Chrome in CI then everything works as expected.

To get things working for ember-cli/ember-ajax#163 I'm just going to set up Travis to run Chrome instead based on the directions here.

from ember-cli-code-coverage.

kategengler avatar kategengler commented on July 23, 2024

There's definitely something funny w/r/t Phantom + Testem + ember test in the last month or so, but I haven't been able to get it into a reproducible scenario. We've been running the top 100 addons ember-try nightly and a few fail because of phantom hanging.

from ember-cli-code-coverage.

alexlafroscia avatar alexlafroscia commented on July 23, 2024

Weird. If you do the steps above locally (new addon w/ ember-cli-code-coverage) does it work?

BTW I've got Phantom 2.1.1 installed locally, AFAIK that's what it's running against.

from ember-cli-code-coverage.

alexlafroscia avatar alexlafroscia commented on July 23, 2024

Solution: don't use Phantom

from ember-cli-code-coverage.

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.