Modernizr: Tests stops at "mocha:test"

When running on Node 8, tests stop at mocha:test task.

> grunt test --stack

(node:4106) ExperimentalWarning: The http2 module is an experimental API.
Running "clean:dist" (clean) task
>> 5 paths cleaned.

Running "eslint:target" (eslint) task

Running "pug:compile" (pug) task
>> 3 files created.

Running "instrument:files" (instrument) task
Instrumented 53 files

Running "env:coverage" (env) task

Running "mochaTest:test" (mochaTest) task


  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․

  323 passing (2s)


Running "generate:dest" (generate) task

Running "connect:server" (connect) task
Started connect web server on http://localhost:9090

Running "mocha:test" (mocha) task
Testing: http://localhost:9090/test/unit.html

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (19 by maintainers)

Commits related to this issue

Most upvoted comments

@patrickkettner Ah, I see. So maybe we should still keep original implementation, but fix hanging tests?

I suppose browsers defined in Sauce configuration are browsers which are used for testing. Maybe we could try to run tests on those browsers and see how it behaves?

@rejas I would definitely go the route of setting up tests with minimal architecture changes, so only browser tests in Karma for now and then we will see for anything else later.

I have experience with Karma (on daily basis I would say 😄) and I can set up test environment with Puppeteer. I suppose it would be too much work to do that since Mocha is browser friendly, but it remains to be seen 😃

I don’t know when this will be ready since I’m going on vacation for 2 weeks, but in the meantime if anything changes with current implementation, great! If not, I will try to create minimal PoC with Karma.