Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Unexpected reporting results for Server test failure #8

Closed
tsemana opened this issue Apr 20, 2016 · 2 comments
Closed

Unexpected reporting results for Server test failure #8

tsemana opened this issue Apr 20, 2016 · 2 comments

Comments

@tsemana
Copy link

tsemana commented Apr 20, 2016

Placing the following in imports/api/lists/lists.tests.js, of the todos app, with all other tests passing,

it('knows the truth', function () {
  assert.isTrue(false);
});

and running meteor test --once --driver-package dispatch:mocha-phantomjs

returns 2 CLIENT FAILURES and 0 SERVER FAILURES. Expected the report to return 0 client failures and 1 server failure. Here is the output of the test run:

I20160420-14:57:09.809(-4)?
I20160420-14:57:09.810(-4)? --------------------------------
I20160420-14:57:09.811(-4)? ----- RUNNING SERVER TESTS -----
I20160420-14:57:09.811(-4)? --------------------------------
I20160420-14:57:09.811(-4)?
I20160420-14:57:09.811(-4)?
I20160420-14:57:09.812(-4)?
I20160420-14:57:09.812(-4)?   0 passing (0ms)
I20160420-14:57:09.812(-4)?
I20160420-14:57:09.812(-4)?
I20160420-14:57:09.813(-4)? --------------------------------
I20160420-14:57:09.813(-4)? ----- RUNNING CLIENT TESTS -----
I20160420-14:57:09.815(-4)? --------------------------------
=> Started your app.

=> App running at: http://localhost:3000/
I20160420-14:57:09.815(-4)?
I20160420-14:57:11.250(-4)?
I20160420-14:57:11.251(-4)?
I20160420-14:57:11.271(-4)?   Lists_show
I20160420-14:57:11.451(-4)? MochaRunner.runServerTests: Starting server side tests with run id jniQKyj7MjCZWsj4C
W20160420-14:57:12.380(-4)? (STDERR) MochaRunner.runServerTests: failures: 1
I20160420-14:57:41.418(-4)? All client and server tests finished!
I20160420-14:57:41.419(-4)?
I20160420-14:57:41.419(-4)? --------------------------------
I20160420-14:57:41.419(-4)? SERVER FAILURES: 0
I20160420-14:57:41.419(-4)? CLIENT FAILURES: 2
I20160420-14:57:41.419(-4)? --------------------------------
@aldeed
Copy link
Contributor

aldeed commented Apr 20, 2016

You have to remove practicalmeteor:mocha. It does not play nicely with the dispatch:mocha-* packages.

@tsemana
Copy link
Author

tsemana commented Apr 20, 2016

Ok I see, thanks! The meteor guide makes it seem as though they do play nicely.

@tsemana tsemana closed this as completed Apr 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants