1.1.3 • Published 5 years ago
@test-ui/ember v1.1.3
@test-ui/ember
Test-UI support for QUnit or Mocha tests in Ember.js apps
Installation
ember install @test-ui/ember
Usage
The {{test-ui-frame}}
component
Use the {{test-ui-frame}}
component in your application.hbs
template, optionally passing in a filter to describe a subset of tests to run
<!-- Run Only ESLint Tests -->
{{test-ui-frame
filter='ESLint'}}
Typically, it's desirable to receive data from the tests as/after they run. This component yields a simple Observable that you may subscribe to
{{/test-ui-frame filter='ESLint' as |api|}}
{{data-receiver-component
observable=api.data}}
{{/test-ui-frame}}
Contributing
Installation
git clone <repository-url>
cd @test-ui/ember
npm install
Linting
npm run lint:js
npm run lint:js -- --fix
Running tests
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
Running the dummy application
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the BSD 2-Clause License. (c) 2018 LinkedIn