-
-
Notifications
You must be signed in to change notification settings - Fork 868
Update Test Components - Integration Test instead of Unit Test #501
Comments
Yes, using the integration test style described in the following articles is the right way forward:
We should definitely update the guide to support, though that might belong in a different issue (I can't recall if there is one already for this). |
Ok, thanks for the links. I appreciate! :) I searched the issue tracker and the PRs but found nothing about this. This is why I decided to open this issue. But I think there is a ember 2.0 guide in the making. |
As an aside it would be helpful to clearly discuss the side effects and statefulness of integration testing and explain the difference from unit testing now that there is that After trying to refactor several hundred component tests in my own project I am seeing a lot of of
In other tests and through out my app. It seems that integration mode has exposed some underlying issues (I have a lot of data binding). And my hunch is that the integration mode is exposing some problems with the setup and tear down of state. |
Will try to get a PR addressing this in the coming week |
@trek I'd be happy to write up a PR for this tonight if there's not one already in progress |
Why are we refactoring component unit tests? Don't component integration tests perform a different role? |
At my day job, we are starting to incorporate integration-component tests as we develop new components. Some things we are working through are how to deal with things like service dependencies, as well as convert/adapt our existing component unit tests to things like closure actions. I've got time today and this weekend, so I'll start writing up a guide page. I'll PR that into here if help is still wanted, but if anything it will help out the team I work on. |
A couple of notes on how I'm going about it...
|
Created a pull request for converting existing component unit test examples to integration tests: #774 |
Hi,
The section in the guides about Testing Components is using Unit Tests. Since 1.13 the correct way to test components is with an Integration Test right? Also, Ember CLI generate an integration test with a component. My english is not good enough to make a PR but I can create this issue. Sorry! :)
Have a nice day and thank you! :)
The text was updated successfully, but these errors were encountered: