Comments (11)
Can you please explain how this can be done
"so make sure your custom folders also map into /home/node."
from nightwatch.
Hi @tranthanhbao2207
There is no examples/tests
folder in the repo, so I guess you're trying to use your own folder structure.
By default the current working directory in nightwatch
will be /home/node
, so make sure your custom folders also map into /home/node
.
Please also note that docker-compose.yml
version 2
files are supported only by Compose 1.6.0+
and require a Docker Engine of version 1.10.0+
.
See also https://docs.docker.com/compose/compose-file/compose-versioning/
from nightwatch.
@bhajojo i could not make it .May be there was problem at "volume" of nightwatch container.
from nightwatch.
If your Nightwatch.js test files are in the ./test
directory, you have to use the following volumes declaration (same as in the sample docker-compose.yml
:
nightwatch:
volumes:
- ./test:/home/node
This way your test files will be available to the Nightwatch.js docker container.
from nightwatch.
My Test are stored in ./test folder only , but still i am getting the same exception
There was an error while starting the test runner:
Error: Cannot read source folder: /home/node/examples/tests
at /usr/lib/node_modules/nightwatch/lib/runner/run.js:200:21
at /usr/lib/node_modules/nightwatch/lib/runner/walk.js:97:18
at FSReqWrap.oncomplete (fs.js:82:15)
from nightwatch.
Another thing you can check is the permissions of the folder you are host-mounting.
e.g. is it owned by a user/group with ID 1000?
The Nightwatch.js process itself is run with this user/group ID in the Docker container.
from nightwatch.
After upgrading to latest version(1.17), i got
Waiting for app:80 to become available ... timeout
May be it is all about permissions
from nightwatch.
That message actually means that your app is not starting, or not available on port 80 (HTTP).
from nightwatch.
I have got the solution
- Copy the whole project in the directory "C://users/Username"
- Put all the files of the projects (e.g. Pages folder,reports,TestData,nightwatch.json,specs ) inside the tests folder
I am able to successfully run the tests by performing above steps
Following error is not coming now
There was an error while starting the test runner:
Error: Cannot read source folder: /home/node/examples/tests
at /usr/lib/node_modules/nightwatch/lib/runner/run.js:200:21
at /usr/lib/node_modules/nightwatch/lib/runner/walk.js:97:18
at FSReqWrap.oncomplete (fs.js:82:15)
from nightwatch.
@bhajojo unfortunately , i do not use windows and my docker is not locally, it is a remotely one.
from nightwatch.
I got this err because i exec command "docker-compose" on my local pc. Volume takes the "specs" dir of remote server(which means null) , instead of from my local pc.
from nightwatch.
Related Issues (16)
- Running tests in parallel HOT 4
- Getting exception while using these libraries HOT 1
- Change chromedriver resolution HOT 1
- Pass command-line-options to nightwatch HOT 3
- Image that doesn't require a volume HOT 1
- file path of entrypoint.sh not found HOT 2
- EACCES: permission denied, mkdir '/home/node/videos' HOT 1
- Running tests in Circle CI's docker container HOT 2
- Increase Timeout && Later Node Version HOT 1
- Update nightwatch to 0.9.19 HOT 2
- Access host at a given port HOT 1
- "Waiting for chromedriver:6060" timeout HOT 1
- Setting up multiple devices HOT 1
- You are running a SCAM site and Hosting code on Github HOT 1
- Chromedriver docker container is not pinned HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightwatch.