Releases: kaliber5/ember-cli-yadda
Releases · kaliber5/ember-cli-yadda
Release 0.7.0
💥 Breaking Change
- #246 Update to ember-auto-import v2 (@simonihmig)
- #248 Update Ember to 3.28, drop support for 3.16 (@simonihmig)
- #247 Drop node 10 support (@simonihmig)
🚀 Enhancement
- #246 Update to ember-auto-import v2 (@simonihmig)
- #248 Update Ember to 3.28, drop support for 3.16 (@simonihmig)
Committers: 2
- Simon Ihmig (@simonihmig)
- @dependabot-preview[bot]
Release 0.6.0
💥 Breaking Change
- #86 Avoid importing yadda from ember-cli-yadda (@simonihmig)
- #85 Update dependencies, drop support for node < 10, Ember < 3.16 (@simonihmig)
🚀 Enhancement
- #87 Support Embroider (@simonihmig)
🐛 Bug Fix
- #86 Avoid importing yadda from ember-cli-yadda (@simonihmig)
📝 Documentation
🏠 Internal
- #90 Setup dependabot (@simonihmig)
- #89 Setup release-it (@simonihmig)
- #88 Setup Github actions, use yarn (@simonihmig)
Committers: 3
- Andrey Mikhaylov (lolmaus) (@lolmaus)
- Simon Ihmig (@simonihmig)
- @dependabot-preview[bot]
Use ember-auto-import instead of ember-browserify
ember-auto-import is used instead of ember-browserify to import yadda.
💥 This is a breaking change.
To upgrade from 0.4.0:
- npm install ember-cli-yadda@0.5.0 --save-dev
- npm uninstall ember-browserify
- In the application test code, replace every instance of:
import yadda from '../../helpers/yadda';
with
import { yadda } from 'ember-cli-yadda';
- Delete
tests/helpers/yadda.js
- Run tests
Use new Testing API
Changes
-
Uses the new testing API (RFC's 232 & 268) to run the BDD tests (#65).
- 💥 This is a breaking change. Version 0.4.0 requires your tests to be written according to the new testing API. See the Upgrading section below for more info.
-
Added ability for custom test setup and teardown (#47). See the Annotations | Customization section of the doc for more info.
-
Added configuration of Yadda options (#72). See the Yadda Configuration section of the doc for more info.
Upgrading
To upgrade to the latest version of this addon from a previous release < 0.4.0, including refactoring your existing tests to Ember's new testing APIs, follow these steps:
- Install the latest version of ember-cli-yadda.
- Run
ember g ember-cli-yadda
to add the most recent files from the blueprint to your project. - Add the appropriate setup annotation to each Feature or Scenario.
- Refactor your step files to use the new testing APIs:
- for application tests, skip using Ember's global test helpers and use those provided by @ember/test-helpers.
- use
async
/await
for all asynchronous operations, includingandThen()
- ember-test-helpers-codemod will be able to do most of
these changes automatically - For further details have a look at the Migration Guide for QUnit
or the Migration Guide for Mocha
- Optional: customize
tests/helpers/yadda-annotations.js
with any additional setup logic that is needed, see Annotations | Custumization.
Upgrade to ember 3.0.0
- Upgraded to use ember 3.0.0. Is backwards compatible with ember 2.x applications.
- Fixes bug where an error in an async step was not reported to QUnit causing the test to hang.
Run-time Annotations
Quick fix on the blueprint install
- #41 Fixes blueprint install
npm, @ignore, seperateSteps
Thanks to @simonihmig, @sfbwalder and @dejavs we have new features and better future proofness.
- #34 Include yadda from npm instead of bower: because of the way yadda was built and put on bower, it was interfering with the ember test runner by moving to npm, and ember-cli-browserify we no longer have this problem.
- #37 If you use mocha there's a new option you can enable, which will give you better looking tests and better traceability on asynchronous tests. Do this by changing the call to
EmberApp
inember-cli-build.js
, like this:
var app = new EmberApp(defaults, {
'ember-cli-yadda': {
'separateSteps': true
}
// Add options here
});
small accumulated changes
adding configurable yadda version
forgot to update the package.json