Skip to content

Test - improve EnvironmentPlugin code coverage - #4201

Merged
sokra merged 2 commits into
webpack:masterfrom
fedebertolini:test/environment-plugin
Feb 6, 2017
Merged

sokra merged 2 commits into
webpack:masterfrom
fedebertolini:test/environment-plugin

Conversation

@fedebertolini

Copy link
Copy Markdown

What kind of change does this PR introduce?
Improve test coverage.

Did you add tests for your changes?
Yes

If relevant, link to documentation update:
#3716

Summary
Added tests for the EnvironmentPlugin to improve test coverage of this class to 100%.

Improved how the regular expressions of the test's expected errors are defined. Before this change, every time a new environment variable or webpack configuration was added, several errors would need to be added. With this change it should be much easier and less error-prone to add more tests.

Does this PR introduce a breaking change?
No

Other information
My first PR 🎉 I'm happy to contribute with this awesome tool 😃

Federico Bertolini added 2 commits February 4, 2017 15:29
@jsf-clabot

jsf-clabot commented Feb 4, 2017

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@TheLarkInn

Copy link
Copy Markdown
Member

Nice and successful coverage increase

@sokra
sokra merged commit 3855b77 into webpack:master Feb 6, 2017
@sokra

sokra commented Feb 6, 2017

Copy link
Copy Markdown
Member

Thanks

@fedebertolini
fedebertolini deleted the test/environment-plugin branch February 6, 2017 13:20
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.

4 participants