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

Intercept Webpack output during functional tests #143

Merged
merged 1 commit into from Sep 2, 2017

Conversation

Lyrkan
Copy link
Collaborator

@Lyrkan Lyrkan commented Aug 18, 2017

This PR replaces process.stdout.write by an empty function when running webpack in each functional test (fixes #47).

It also sets the silent option of the Zombie.js browser to true to avoid displaying things like:

Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

The only "noisy" message left should be DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead since it is sent to stderr (should be fixed when alexindigo/webpack-chunk-hash#9 is released).

@stof
Copy link
Member

stof commented Aug 18, 2017

The fact that stderr messages are still displayed is fine to me. Usages of deprecated APIs should still be reported in our CI (even though it is not our fault this time)

@weaverryan
Copy link
Member

Awesome! Thank you @Lyrkan! Sorry for the delay - August is almost completely travel... with my infant. Will be back in a week for more complex stuff. I very much appreciate the attention for Encore :)

@weaverryan weaverryan merged commit a74869b into symfony:master Sep 2, 2017
weaverryan added a commit that referenced this pull request Sep 2, 2017
This PR was merged into the master branch.

Discussion
----------

Intercept Webpack output during functional tests

This PR replaces `process.stdout.write` by an empty function when running webpack in each functional test (fixes #47).

It also sets the `silent` option of the Zombie.js browser to true to avoid displaying things like:

```
Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
```

The only "noisy" message left should be `DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead` since it is sent to stderr (should be fixed when alexindigo/webpack-chunk-hash#9 is released).

Commits
-------

a74869b Intercept output during functional tests (fixes #47)
@Lyrkan Lyrkan deleted the mute-stdout-functional-tests branch September 3, 2017 15:29
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.

Functional tests should intercept the output
3 participants