Test-framework-agnostic helpers for testing Ember.js applications
Clone or download
rwjblue Merge pull request #465 from mydea/fix-type-in
Ensure typeIn has correct key option
Latest commit 04180b2 Dec 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
addon-test-support Make typeIn use triggerKeyEvent Dec 14, 2018
config Fix test config for ember-cli-htmlbars-inline-precompile in Ember<=2.12 Nov 22, 2018
scripts Adjust `prepublishOnly` hook to move declaration files to the right p… Nov 1, 2018
tests Make typeIn use triggerKeyEvent Dec 14, 2018
types types: Add basic `buildRegistry()` type definition Nov 7, 2018
vendor Adapt module paths to both 3.1 and 3.2 Apr 20, 2018
.editorconfig Remove max_line_length from .editorconfig. Nov 8, 2017
.ember-cli Migrate to an ember-cli addon. Oct 7, 2017
.eslintignore Upgrade Ember Nov 7, 2018
.eslintrc.js Clean up linting configuration. Nov 20, 2018
.gitignore Clean up linting configuration. Nov 20, 2018
.npmignore Upgrade Ember Nov 7, 2018
.prettierrc.js Clean up linting configuration. Nov 20, 2018
.travis.yml TravisCI: Remove deprecated `sudo: false` option Dec 1, 2018
.watchmanconfig Migrate to an ember-cli addon. Oct 7, 2017
APACHE-LICENSE Dual license under Apache v2 and MIT Oct 1, 2014
API.md Standardize documentation copy Oct 15, 2018
CHANGELOG.md Add v1.1.0 to CHANGELOG. Dec 10, 2018
MIT-LICENSE Dual license under Apache v2 and MIT Oct 1, 2014
README.md README: Adjust "Usage" section Mar 1, 2018
documentation.yml Add a typeIn helper with optional delay Aug 1, 2018
ember-cli-build.js Fix scenarios without jquery Apr 20, 2018
index.js Change addon name to avoid mismatch Nov 7, 2018
package.json Bump ember-fetch from 6.3.0 to 6.3.1 Dec 14, 2018
testem.js Upgrade Ember Nov 7, 2018
tsconfig.json tsconfig: Enable `noImplicitAny` again Nov 7, 2018
yarn.lock Bump ember-fetch from 6.3.0 to 6.3.1 Dec 14, 2018

README.md

@ember/test-helpers

Build Status

A test-framework-agnostic set of helpers for testing Ember.js applications

Installation

If you are writing a regular Ember app or addon there is not much for you to do as ember-qunit (and ember-mocha) already include this package as a dependency. You only need to make sure that you are using a recent enough version of either one of these packages.

If you are working on ember-qunit or ember-mocha themselves you can install this package like any other regular Ember addon.

Usage

This package exports several helper functions that can be used to improve the testing experience when developing Ember.js apps or addons.

These helper functions include DOM interaction helpers (click(), fillIn(), ...), routing and rendering helpers (visit(), render(), ...) and some other things that make it easy to write good tests.

The full documentation can be found in the API reference.

Contributing

Installation

  • git clone <repository-url>
  • cd ember-test-helpers
  • yarn install

Running tests

  • yarn test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

Attribution

Much of ember-test-helpers was extracted from the original ember-qunit, which was written by Stefan Penner, Robert Jackson, and Ryan Florence.

Copyright and License

Copyright 2015 Switchfly and contributors.

Dual-licensed under the Apache License, Version 2.0 and the MIT License.