Module: tasks/test/visualTesting/docker

(require("tasks/test/visualTesting/docker"))(options) → {function}

taskFactory
Parameters:
Name Type Description
options Object Options for the machine and container
Default Value:
  • options
    
     {
            machineName: 'default',
            ipAddressIdentifier: 'visual-testing',
            image: 'selenium/standalone-chrome-debug:latest',
            containerName: 'visual-testing',
            containerfonts: __dirname + '/../docker/fonts',
            seleniumPort: '4444',
            vncPort: '5900',
            hostConfig: {
                PortBindings: {
                    '5900/tcp': [{
                        HostPort: this.vncPort
                    }],
                    '4444/tcp': [{
                        HostPort: this.seleniumPort
                    }]
                },
                Binds: [
                    '/dev/shm:/dev/shm', // prevents needing to run chrome with privileged mode
                    this.containerfonts + ':/usr/share/fonts/truetype' // map standard win and osx fonts not found in linux
                ]
            }
     }
    
Source:
Returns:
task
Type
function