Skip to content

Running tests/CI suite #49

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

Closed
Tyler-Churchill opened this issue Jul 31, 2018 · 3 comments
Closed

Running tests/CI suite #49

Tyler-Churchill opened this issue Jul 31, 2018 · 3 comments

Comments

@Tyler-Churchill
Copy link

I may be missing an obvious configuration option.

For running this server for testing, how would one ensure that the webpack watch stops executing so everything can exit correctly?

I can add a pull request that adds another cli command, something like start:ci or something like that.

@iiroj
Copy link

iiroj commented Aug 21, 2018

If you absolutely need this, I recently created my own alternative, lambda-dev. Its main difference is that it's not Netlify-specific and doesn't read the netlify.toml file, but otherwise it similarly supports serving (with configurable prefix) and building through webpack/babel.

Since adding tests, I had to add support for controlling webpack's watch mode. I just released v1.4.0 and added a --watch false flag to disable watching.

@8eecf0d2
Copy link
Contributor

like @iiroj I've also created my own alternative 8eecf0d2/netlify-local which does read netlify.toml and now has an API for test runners which you can use to start / stop the Server and manage the Webpack build process.

See 8eecf0d2/netlify-local#6 for more about the API.

@swyxio
Copy link
Contributor

swyxio commented Oct 17, 2018

hi @Tyler-Churchill, sorry for the super delayed repsonse. i'm just picking up on all the issues now. will link to you from the readme but i have no official testing solution in the repo right now.

@swyxio swyxio closed this as completed Oct 17, 2018
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

No branches or pull requests

4 participants