-
Notifications
You must be signed in to change notification settings - Fork 95
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
starting cypress and webpack #154
Comments
kind of missing details, can you run it in debug mode (see README) |
it just starts looping indefinitely |
Yeah seems something about it that wait-on does not recognize :( is this repo public so I can run it myself?
…Sent from my iPhone
On Mar 28, 2019, at 06:36, Andrei ***@***.***> wrote:
C:\~directory~>set DEBUG=start-server-and-test
C:\~directory~>npm run cy:test
> ***@***.*** cy:test C:~directory~
> start-server-and-test cy:start http-get://localhost:3000/ cy:run
starting server using command "npm run cy:start"
and when url "http-get://localhost:3000/" is responding
running tests using command "cy:run"
start-server-and-test starting server, verbose mode? true +0ms
start-server-and-test starting waitOn http-get://localhost:3000/ +45ms
> ***@***.*** cy:start C:\~directory~
> npm run open:src
> ***@***.*** open:src C:\~directory~
> babel-node tools/srcServer.js
child next [ { 'http-get://localhost:3000/': -999 } ]
wait-on(15068) waiting for: http-get://localhost:3000/
child complete
undefined { path: 'C:\\~directory~\\dist',
publicPath: '/',
filename: '[name].js',
chunkFilename: '[name].js',
library: '',
hotUpdateFunction: 'webpackHotUpdate',
jsonpFunction: 'webpackJsonp',
libraryTarget: 'var',
sourceMapFilename: '[file].map[query]',
hotUpdateChunkFilename: '[id].[hash].hot-update.js',
hotUpdateMainFilename: '[hash].hot-update.json',
crossOriginLoading: false,
chunkLoadTimeout: 120000,
hashFunction: 'md5',
hashDigest: 'hex',
hashDigestLength: 20,
devtoolLineToLine: false,
strictModuleExceptionHandling: false }
child next []
child complete
child next []
child complete
child next []
child complete
........
child next []
child complete
webpack built c721a15d4d98a278ff50 in 86510ms
child next []
child complete
child next []
.....
child next []
child complete
Terminate batch job (Y/N)? y
it just starts looping indefinitely
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
unfortunately not :/ |
but could we find another way? |
Same problem here with Quasar framework which uses webpack under the hood.
Even after server finished its loading. |
After setting env var
Maybe it would be great if this situation can be detected (server started but there is an SSL issue with wait-on) and a proper error message shown, instead of "no reaction". |
Works even better following the Readme entierely:
Works like a charm as well (better option than setting something "insecure", even if it's only for checking that web server responds) If there is a way to check automatically that webpack-dev-server is used, it would be great to switch automatically to "http-get" or "https-get" URLs for wait-on. |
@mpacary tried it but didn't work |
@andrei9669 did you try both approaches explained in my two last messages ? |
oh damn, I tried that env variable set to 0 and it works :D |
nvm, it worked once. after that "anomaly" it's not working again |
Does it works with http-get instead of https-get? How to you set the env var before running |
Try changing env vars for system (instead of account), or typing directly in command line |
okay, when I write Also if I have a test that fails I get a bunch of errors, is it normal?
|
Normal or not IDK, but it's certainly something you do not expect 😄. Please create another issue for this... If you do so, please tell exactly what command line you run to get this, what |
As a heads up: I had to run Without the start I was getting an error when using |
If you're using |
Tried quite a few of these variations. Not sure what I'm doing in correctly but can't get the test to run. Individually the commands run.
Also tried
with node v10.15.3 (npm v6.10.2) |
Getting below error when i run the cypress test cases { Error: Command failed with exit code 3: cypress run |
Can you paste the full output log? Did any of the cypress tests fail?
…Sent from my iPhone
On Mar 23, 2020, at 12:54, gowrishyadalam ***@***.***> wrote:
Getting below error when i run the cypress test cases
{ Error: Command failed with exit code 3: cypress run
at makeError (/home/User/Documents/loginpagetestcases/apm-react/node_modules/start-server-and-test/node_modules/execa/lib/error.js:56:11)
at handlePromise (/home/User/Documents/loginpagetestcases/apm-react/node_modules/start-server-and-test/node_modules/execa/index.js:114:26)
at process._tickCallback (internal/process/next_tick.js:68:7)
command: 'cypress run',
exitCode: 3,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
yes.. three test cases failed. FYI, I know cypress return the exitcode:3 is this the real issue ?? |
Hi, not sure my issue is related, but googling I came here. I'm using Jenkins to run cypress and in my Job I've this error:
I'm using cypress 4.3.0. For a detailed explanation I opened a stackOverflow post because I thought it was a configuration problem: https://stackoverflow.com/questions/61120755/jenkins-running-cypress-test-ends-up-with-timeout Do you have any hint or workaround? I'm stuck with test automation :-\ Thanks |
###Hi i am facing this issue tests successfully passed but at the end throw this error. npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: D:\jenkins changes\fleetteam-repos\trunk> |
Is this a bug report or a feature request?
bug report
version
start-server-and-test: 1.7.12
cypress: 3.2.0
platform
win10
expected behavior
using scripts like these
should work as described in README
actual behavior
It completes start script(builds source and then webpack) but it doesn't get any further than that
The text was updated successfully, but these errors were encountered: