Meteor test only runs one test suite

Yanick Rochon

This is part of my project directory.

enter image description here

Unfortunately, for some strange reasons, all but one tests are executed, the one contained in the file methods.transformations.test.js.

Everything seemed fine this morning, then I ran into some issues and fixed them, and when I looked back at the test results, all my tests are no longer executed. All the files are loaded, and if I put a console.log inside every describe, I see things being echo'ed, but no it(...) is executed.

I'm not sure what kind of information I can provide to help resolve this issue. Can someone help?

I'm using

practicalmeteor:[email protected]_1
practicalmeteor:[email protected]_6
practicalmeteor:[email protected]

Edit

I just created a file /test/foo.test.js with this content :

describe('Testing', function () {
  console.log("Testing...");
  it('should test', function () {
    console.log("This should be echoed");
  });
});

And only "Testing" is echoed. Whereas the exact same code is put inside methods.transformations.test.js and everything is executed.


Edit 2

Yes, the Meteor Testing docs say that

The Meteor build tool and the meteor test command ignore any files located in any tests/ directory.

But my directory is only called test, not tests. Despite this, I went on and created a file called items.specs.js

enter image description here

However, the test case (i.e. the it(...)) is not executed.

I run my tests using npm test defined in my package.json as

...
  "test": "meteor test --driver-package practicalmeteor:mocha --port 3100"
...
Yanick Rochon

While editing this question with more data, I found my issue. If anyone encounter this... well... images are worth a thousand words. This might be your problem, too!

Chrome URL issue Chrome URL cleaned

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Run only ONE test with Jest

TestNG only running the first test in a suite

When trying to run Selenium Cucumber test in two browsers, test runs in only one browser

Cypress: run only one test

How can I run only one test from a suite?

Gradle run only one test suite

PhpSpec: How can I run only one test from a suite?

Run only one unit test from a test suite in laravel

Is it possible to show only the summary of a Mocha test suite in the cli report?

Your test Suite must contain at least one test ( Refuses to count expect as a test when it passes )

How Do I return to main page only when one of test within test suite failed?

Travis CI runs only one test

packaging with numpy and test suite

Test suite runs in two batches with MiniTest

Mocha runs only one test

Is it possble to reset Spring-Test's context cache before a test suite runs (not after)

test suite python - webdriver

Select test cases in a test suite

Run one test from testNG within suite

Angular2 and Karma Run only one test suite aka describe.only

SoapUI: Have a separate Test Suite that runs a GroovyScript TestStep that checks all other Test Cases In other Test Suites?

Arquillian deploys application but test runs only locally

Only first test succeeds running Spock suite with setupSpec()

On Running the test suite: Runs the test suite shows test passed Notification but displays "Empty Suite"

pytest only runs first test in file

Unit test is only running one test (python)

Angular Jest test and using two stubs in one test-suite

Unit test runs only once with array as parameter

Create and run a minimal test suite in Haskell using Hunit only