Skip to content

Disable slow tree log within ember test --server.#877

Merged
stefanpenner merged 1 commit intoember-cli:masterfrom
rwjblue:silence-watcher-in-test-server
Jun 1, 2014
Merged

Disable slow tree log within ember test --server.#877
stefanpenner merged 1 commit intoember-cli:masterfrom
rwjblue:silence-watcher-in-test-server

Conversation

@rwjblue
Copy link
Member

@rwjblue rwjblue commented Jun 1, 2014

The testem UI does not always repaint the full screen, which means that in some scenarios the slow tree log bleeds through and there is no testem command to for repaint the full screen (that I know of at least).

Fixes #867.

The `testem` UI does not always repaint the full screen, which means
that in some scenarios the slow tree log bleeds through and there is no
testem command to for repaint the full screen (that I know of at least).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a better case for lodash defaults ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can change if you'd prefer, but it seems that assign is what we want here. My understanding of the difference is that with assign and defaults:

  • assign -- the source ({verbose:false} in this case) will "win" (even if options already has a verbose property).
  • defaults -- the source ({{verbose:false} in this case) will lose if options already has a verbose property.

It is a moot point in our case since we are creating options directly above and we know it cannot have a verbose prop in it, but if it were possible for options to have verbose already set I still think assign is the right call here since we always want verbose to be false when running under testem (the testem UI completely covers any logging anyways).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good :)

stefanpenner added a commit that referenced this pull request Jun 1, 2014
Disable slow tree log within `ember test --server`.
@stefanpenner stefanpenner merged commit 69d96b5 into ember-cli:master Jun 1, 2014
@stefanpenner stefanpenner deleted the silence-watcher-in-test-server branch June 1, 2014 02:39
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

Successfully merging this pull request may close these issues.

Watcher for ember test --server should not be in verbose mode.

2 participants