Protractor tests execution environment
50K+
This image contains a fully configured environment for running Protractor tests under Chromium and Firefox browsers.
In order to run tests from a CI system, execute the following:
docker run --rm -v <test project location>:/project caltha/protractor
The container will terminate automatically after the tests are completed. The output of supervisord visible on the console is not interesting in most circumstances. You should check target/supervsor.out file to see the output of Protractor. Dispalying the file in an Unix terminal using cat is recommended over opening it using an editor because the file contains ANSI escape sequences.
If you want to run the tests interactively you can launch the container and enter into it:
CONTAINER=$(docker run -d -v <test project location>:/project --env MANUAL=yes caltha/protractor)
docker exec -ti $CONTAINER sudo -i -u node bash
When inside the container you can run the tests at the console by simply invoking protractor. When things don't work as expected, you should check Selenium WebDrover output in /var/log/supervisor/webdriver-err.log. When you are done, you terminate the Protractor container with docker kill $CONTAINER
An example project included in the source repository show how jasmine-reporters module can be used to generate JUnit-style test reports that can be used by Jenkins and other tools to display test results or fail the build if test failures are detected.
Content type
Image
Digest
sha256:3e2bb802f…
Size
524 MB
Last updated
over 7 years ago
docker pull caltha/protractor