ember-cli / ember-exam

Run your tests with randomization, splitting, and parallelization for beautiful tests.
MIT License
286 stars 62 forks source link

Not ending test. #256

Closed AdminDev826 closed 4 years ago

AdminDev826 commented 5 years ago
    "ember-cli": "^3.1.4",
    "ember-cli-app-version": "^3.0.0",
    "ember-cli-babel": "^7.7.3",
    "ember-qunit": "3.4.1",
    "ember-exam": "^2.1.4",

ember exam --filter='acceptance' --random

not ok 170 Chrome 73.0 - [6717 ms] - Acceptance | sales - customer-payment: sales - customer-payment
    ---
        actual: >
            Index - Desk Top Objects
        expected: >
            Sales - Companies
        stack: >
                at Object.<anonymous> (http://localhost:7357/assets/tests.js:30195:14)
        negative: >
            false
        Log: |
            { type: 'log',
              text: '\'No Company records received from server! -- \' \'/\'\n' }
    ...
ok 171 Chrome 73.0 - [20023 ms] - Acceptance | purchases - delivery-order-item-inst: purchases - delivery-order-item-inst
    ---
        Log: |
            { type: 'log',
              text: '\'No tab found! -- Purchase Orders -- \' \'/purchases/companies/1.0\'\n' }
    ...

Test won't end. (Test doesn't any progresses further) ...

choheekim commented 5 years ago

Hi @AdminDev826, I'm looking into the issue. do you mind sharing how the test-helper.js looks like?

AdminDev826 commented 5 years ago

Sure.

import Application from '../app';
import config from '../config/environment';
import { setApplication } from '@ember/test-helpers';
// import { start } from 'ember-qunit';
import start from 'ember-exam/test-support/start';

setApplication(Application.create(config.APP));

start();
rwjblue commented 5 years ago

@choheekim This seems like a duplication of https://github.com/emberjs/ember-qunit/issues/476

choheekim commented 5 years ago

@AdminDev826 for ember-exam < v3.0.0 you want to import loadEmberExam and call start if you are using QUnit as test framework. e.g.

import loadEmberExam from 'ember-exam/test-support/load';
import { start } from 'ember-qunit';

loadEmberExam();
start();