Skip to content

Nightwatch.js Dockerfile with screen recording support and selenium setup example without Java requirement

Notifications You must be signed in to change notification settings

kanolato/nightwatch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nightwatch.js Dockerfile

Dockerfile for Nightwatch.js.

Usage

Run the nightwatch tests:

docker-compose run --rm nightwatch

A video of the test will be stored in test/videos.
Video recording is done with nightwatch-video-recorder.

Connect to the chromedriver via VNC:

open vnc://user:secret@localhost:5900

The VNC password can be changed via VNC_PASSWORD environment variable for the chromedriver container.

Stop and remove the docker-compose container set:

docker-compose down -v

FAQ

Permission denied for videos/screenshots folders

If you get a permission error for the videos/screenshots folders, make sure they are writable for the nightwatch process:

mkdir -p test/screenshots test/videos
chmod 777 test/screenshots test/videos

License

Released under the MIT license.

Author

Sebastian Tschan

About

Nightwatch.js Dockerfile with screen recording support and selenium setup example without Java requirement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 53.2%
  • JavaScript 39.2%
  • HTML 7.6%