taskworld / test-bed

:factory: Development test runner for webpack to improve TDD experience. Runs only specs affected by code change. Serve test files from memory. For large project with hundreds of test files.
33 stars 5 forks source link

Pass in webpack config file via command line parameter #4

Closed lukastaegert closed 8 years ago

lukastaegert commented 8 years ago

In order to use different configurations within the same project, this pull request checks for the presence of a command line parameter and interprets this as the webpack.config file to use.

Possible use case: Run test-bed with different sub-sets of tests (unit and integration tests...) that also may require different configurations

This is a very simple implementation. Feel free to use a more involved implementation (using commander?) if you plan on adding other command line parameters in the future

By the way, great tool, it helps us a lot!

lukastaegert commented 8 years ago

Any comments about this one? Something like this would really help in our development.

dtinth commented 8 years ago

Hello! I’m so sorry! I’ve been busy with other stuff that I don’t even notice the existence of this pull request. This proposal looks very nice.

However I think if this is going to be implemented, maybe an arguments parser, such as yargs, should be used. Then we can use the same command line syntax as webpack, e.g. -c for configuration file, or -p for port.

lukastaegert commented 8 years ago

Sounds good to me, this was also to find out how you feel about this and where you plan to go in the future. If I find the time, maybe I make another pull request. Thanks for the feedback!