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

Use shared test helpers from ember-dev. #2456

Closed
rwjblue opened this issue Nov 8, 2014 · 3 comments
Closed

Use shared test helpers from ember-dev. #2456

rwjblue opened this issue Nov 8, 2014 · 3 comments
Assignees

Comments

@rwjblue
Copy link
Member

rwjblue commented Nov 8, 2014

Pulled into ember in emberjs/ember.js#9516.

Helpers from https://github.com/emberjs/ember-dev. Can be used as a plain bower repo, or an ember-cli addon (though I have not tested as an addon just yet).

Basically in Ember we did the following:

var EmberDevTestHelperAssert = window.Ember.__loader.require('ember-dev/test-helper/index')['default'];
var setupQUnit = window.Ember.__loader.require('ember-dev/test-helper/setup-qunit')['default'];

var testHelpers = new EmberDevTestHelperAssert(window.Ember, EmberDev.runningProdBuild);
setupQUnit(testHelpers);

This adds the following helpers (not a complete list, just what I could think of):

  • expectDeprecation
  • expectNoDeprecation
  • ignoreDeprecation
  • expectAssertion
  • ignoreAssertion

Also, confirms that the following is true at the end of each test (to ensure tests do not bleed through to each other):

  • No pending run loops.
  • No views in Ember.View.views
  • No templates in Ember.TEMPLATES
@igorT
Copy link
Member

igorT commented May 25, 2015

Ping

@bmac bmac self-assigned this Oct 13, 2015
@bmac
Copy link
Member

bmac commented Oct 13, 2015

I'll try to get to this issue this week.

@fivetanley
Copy link
Member

closing thanks to @pangratz in #4040

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

No branches or pull requests

4 participants