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

environment "development" when running tests in browser #30

Open
tarzan opened this issue Dec 24, 2015 · 2 comments
Open

environment "development" when running tests in browser #30

tarzan opened this issue Dec 24, 2015 · 2 comments

Comments

@tarzan
Copy link

tarzan commented Dec 24, 2015

When I add the addon to my package.json the environment of my app becomes development everywhere, where it used to be test when running ember serve and browsing to localhost:4200/tests.

I can not figure out the cause of this behavior, only that removing this addon from package.json gives me the expected behavior again...

@tarzan
Copy link
Author

tarzan commented Jan 4, 2016

anyone got a clue why this happens?

@nruth
Copy link

nruth commented May 2, 2016

That sounds normal: http://ember-cli.com/user-guide/#testing

Alternatively you can run the tests in your regular browser using the QUnit interface. Run ember server and navigate to http://localhost:4200/tests. When the app runs in /tests it runs in the development environment, not the test environment.

There is some stuff at https://www.github.com/thoughtbot/ember-cli-rails#ember_env about the Rails environment being forwarded to the ember app, but that'll only happen when you go through the rails server (port 3000) not the ember server (port 4200).

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

2 participants