Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rahsheen/ember-engines-testing-repro

Repo to demonstrate that Models cannot be resolved in Ember Engines Integration testing
https://github.com/rahsheen/ember-engines-testing-repro

Last synced: 13 days ago
JSON representation

Repo to demonstrate that Models cannot be resolved in Ember Engines Integration testing

Awesome Lists containing this project

README

        

# ember-engines-testing

This repository is a reproduction of an issue which occurs when testing Ember components within an in-repo engine. In order to test such components, the Ember Resolver must be modified to be able to resolve these components.

The problem is that, in modifying the resolver in this way, the _Integration Test_ code is no longer able to resolve the host app models. This means that it's not possible to easily mock out more complex model relationships for testing components. Also, add-ons like Ember CLI Mirage and FactoryGuy are rendered useless.

## Prerequisites

You will need the following things properly installed on your computer.

* [Git](https://git-scm.com/)
* [Node.js](https://nodejs.org/) (with npm)
* [Ember CLI](https://ember-cli.com/)
* [Google Chrome](https://google.com/chrome/)

## Installation

* `git clone ` this repository
* `cd ember-engines-testing`
* `npm install`

## Running / Development

* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).
* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).

### Code Generators

Make use of the many generators for code, try `ember help generate` for more details

### Running Tests

* `ember test`
* `ember test --server`

### Linting

* `npm run lint:hbs`
* `npm run lint:js`
* `npm run lint:js -- --fix`

### Building

* `ember build` (development)
* `ember build --environment production` (production)

### Deploying

Specify what it takes to deploy your app.

## Further Reading / Useful Links

* [ember.js](https://emberjs.com/)
* [ember-cli](https://ember-cli.com/)
* Development Browser Extensions
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)