Skip to content
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

All unit tests pass but Coverage tests fail #126

Closed
AdrienLemaire opened this issue Feb 3, 2014 · 3 comments
Closed

All unit tests pass but Coverage tests fail #126

AdrienLemaire opened this issue Feb 3, 2014 · 3 comments

Comments

@AdrienLemaire
Copy link
Contributor

Hi,

I wrote a few unit tests for my project, and running grunt --debug execute them correctly Executed 6 of 6 SUCCESS.

Still, grunt fails with folllowing error:

failure

how to reproduce:

$ git clone https://github.com/Fandekasp/CoinsManager.git
$ cd CoinsManager && git checkout 12d9e0e
$ sudo npm i -g karma phantomjs istanbul grunt-cli selenium-webdriver mocha karma-chai
$ cd tests/rtd && grunt --debug

Why I am getting this error ? the Test coverage checker time changes everytime, but is always 1ms more than the thresholds. I don't understand why the thresholds value always change.
Also, while I'm running grunt with --debug, I'm not seeing any traceback. Any idea how to display them ?

Thank you for your help
Cordially

@AdrienLemaire
Copy link
Contributor Author

There's a couple problems here:

  • coffee files are not covered.
  • my only one js file is covered 100% but the test coverage checker fails as shown in above screenshot.

It might be related to #27, though no error is raised.

My packages version:

$ npm list
├── coffee-script@1.6.3
├─┬ jasmine-node@1.12.0
│ ├── coffee-script@1.6.3
│ ├─┬ gaze@0.3.4
│ │ ├─┬ fileset@0.1.5
│ │ │ └─┬ glob@3.2.7
│ │ │   └── inherits@2.0.1
│ │ └─┬ minimatch@0.2.14
│ │   ├── lru-cache@2.5.0
│ │   └── sigmund@1.0.0
│ ├─┬ jasmine-growl-reporter@0.0.2
│ │ └── growl@1.7.0
│ ├── jasmine-reporters@0.2.1
│ ├── mkdirp@0.3.5
│ ├── requirejs@2.1.9
│ ├── underscore@1.5.2
│ └── walkdir@0.0.7
├─┬ karma@0.10.9
│ ├── chokidar@0.8.1
│ ├── colors@0.6.0-1
│ ├─┬ connect@2.8.8
│ │ ├── buffer-crc32@0.2.1
│ │ ├── bytes@0.2.0
│ │ ├── cookie@0.1.0
│ │ ├── cookie-signature@1.0.1
│ │ ├── debug@0.7.4
│ │ ├── formidable@1.0.14
│ │ ├── fresh@0.2.0
│ │ ├── methods@0.0.1
│ │ ├── pause@0.0.1
│ │ ├── qs@0.6.5
│ │ ├─┬ send@0.1.4
│ │ │ └── range-parser@0.0.4
│ │ └── uid2@0.0.2
│ ├── di@0.0.1
│ ├─┬ glob@3.1.21
│ │ └── inherits@1.0.0
│ ├── graceful-fs@1.2.3
│ ├─┬ http-proxy@0.10.4
│ │ ├─┬ optimist@0.6.0
│ │ │ ├── minimist@0.0.5
│ │ │ └── wordwrap@0.0.2
│ │ ├── pkginfo@0.3.0
│ │ └─┬ utile@0.2.1
│ │   ├── async@0.2.10
│ │   ├── deep-equal@0.2.1
│ │   ├── i@0.3.2
│ │   ├── mkdirp@0.3.5
│ │   └── ncp@0.4.2
│ ├── lodash@1.1.1
│ ├─┬ log4js@0.6.9
│ │ ├── async@0.1.15
│ │ ├─┬ readable-stream@1.0.25
│ │ │ └── string_decoder@0.10.25
│ │ └── semver@1.1.4
│ ├── mime@1.2.11
│ ├─┬ minimatch@0.2.14
│ │ ├── lru-cache@2.5.0
│ │ └── sigmund@1.0.0
│ ├─┬ optimist@0.3.7
│ │ └── wordwrap@0.0.2
│ ├── q@0.9.7
│ ├── rimraf@2.1.4
│ ├─┬ socket.io@0.9.16
│ │ ├── base64id@0.1.0
│ │ ├── policyfile@0.0.4
│ │ ├── redis@0.7.3
│ │ └─┬ socket.io-client@0.9.16
│ │   ├─┬ active-x-obfuscator@0.0.1
│ │   │ └── zeparser@0.0.5
│ │   ├── uglify-js@1.2.5
│ │   ├─┬ ws@0.4.31
│ │   │ ├── commander@0.6.1
│ │   │ ├── nan@0.3.2
│ │   │ ├── options@0.0.5
│ │   │ └── tinycolor@0.0.1
│ │   └── xmlhttprequest@1.4.2
│ └─┬ useragent@2.0.7
│   └── lru-cache@2.2.4
├─┬ karma-chai@0.0.2
│ └─┬ chai@1.8.1
│   ├── assertion-error@1.0.0
│   └─┬ deep-eql@0.1.3
│     └── type-detect@0.1.1
├── karma-chrome-launcher@0.1.2
├── karma-coffee-preprocessor@0.1.2
├── karma-firefox-launcher@0.1.3
├── karma-html2js-preprocessor@0.1.0
├── karma-jasmine@0.1.5
├─┬ karma-phantomjs-launcher@0.1.2
│ └─┬ phantomjs@1.9.7-1
│   ├── adm-zip@0.2.1
│   ├── kew@0.1.7
│   ├── mkdirp@0.3.5
│   ├── ncp@0.4.2
│   ├─┬ npmconf@0.0.24
│   │ ├─┬ config-chain@1.1.8
│   │ │ └── proto-list@1.2.2
│   │ ├── inherits@1.0.0
│   │ ├── ini@1.1.0
│   │ ├─┬ nopt@2.1.2
│   │ │ └── abbrev@1.0.4
│   │ ├── once@1.1.1
│   │ ├── osenv@0.0.3
│   │ └── semver@1.1.4
│   ├── rimraf@2.2.6
│   └── which@1.0.5
├── karma-requirejs@0.2.1
├── karma-script-launcher@0.1.0
├─┬ mocha@1.17.1 -> /usr/lib/node_modules/mocha
│ ├── commander@2.0.0
│ ├── debug@0.7.4
│ ├── diff@1.0.7
│ ├─┬ glob@3.2.3
│ │ ├── graceful-fs@2.0.1
│ │ ├── inherits@2.0.1
│ │ └─┬ minimatch@0.2.14
│ │   ├── lru-cache@2.5.0
│ │   └── sigmund@1.0.0
│ ├── growl@1.7.0
│ ├─┬ jade@0.26.3
│ │ ├── commander@0.6.1
│ │ └── mkdirp@0.3.0
│ └── mkdirp@0.3.5
├─┬ newrelic@1.3.0
│ ├── bunyan@0.14.6
│ └─┬ continuation-local-storage@2.6.2
│   ├─┬ async-listener@0.4.5
│   │ └── shimmer@1.0.0
│   └─┬ emitter-listener@1.0.1
│     └── shimmer@1.0.0
├── requirejs@2.1.10
├── should@2.1.1
└── underscore@1.5.2 -> /usr/lib/node_modules/underscore

@PSzu
Copy link

PSzu commented Feb 19, 2014

After trying 666 different ideas I noticed that chromedriver for linux is 64 bit. I fixed the problem by setting it to 32 bit one in rtd.conf.js. My system is Ubuntu 14.04 32 bit (installed alpha release daily build).

    linux: {
        chromeDriverName: 'chromedriver',
        chromeDriverOs: 'linux32',
        chromeDriverVersion: '2.9',
        chromeDriverSha: 'ee63acfd65eac83f7f42604ad48b0107ff8a5c25'
    },

@samhatoum
Copy link
Member

Thanks for posting back the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants