|
1 |
| -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
2 | 4 | <modelVersion>4.0.0</modelVersion>
|
3 | 5 |
|
4 | 6 | <parent>
|
5 | 7 | <groupId>io.cucumber</groupId>
|
6 |
| - <artifactId>cucumber-jvm</artifactId> |
7 |
| - <relativePath>../../pom.xml</relativePath> |
| 8 | + <artifactId>cucumber-examples</artifactId> |
8 | 9 | <version>2.0.0-SNAPSHOT</version>
|
9 | 10 | </parent>
|
10 | 11 |
|
11 | 12 | <artifactId>java-webbit-websockets-selenium</artifactId>
|
12 | 13 | <packaging>jar</packaging>
|
13 | 14 | <name>Examples: Webbit WebSockets tested with Selenium</name>
|
14 | 15 |
|
15 |
| - <!-- skipTests --> |
16 | 16 | <build>
|
17 | 17 | <plugins>
|
| 18 | + <plugin> |
| 19 | + <groupId>com.lazerycode.selenium</groupId> |
| 20 | + <artifactId>driver-binary-downloader-maven-plugin</artifactId> |
| 21 | + <executions> |
| 22 | + <execution> |
| 23 | + <goals> |
| 24 | + <goal>selenium</goal> |
| 25 | + </goals> |
| 26 | + </execution> |
| 27 | + </executions> |
| 28 | + </plugin> |
| 29 | + |
18 | 30 | <plugin>
|
19 | 31 | <groupId>org.apache.maven.plugins</groupId>
|
20 | 32 | <artifactId>maven-surefire-plugin</artifactId>
|
21 | 33 | <configuration>
|
22 |
| - <!-- we don't want to run these tests on travis TRAVIS will be set to true in the travis CI |
23 |
| - They WILL be compiled --> |
24 |
| - <!-- TODO: there's PhantomJS, and xvfb, so we could maybe re-enable these --> |
25 |
| - <skipTests>${env.TRAVIS}</skipTests> |
| 34 | + <systemPropertyVariables> |
| 35 | + <!-- |
| 36 | + Run phantomjs by default. It probably works every where. |
| 37 | +
|
| 38 | + Check the develop profile to configure which web driver to use |
| 39 | + when developing. |
| 40 | + --> |
| 41 | + <webdriver>phantomjs</webdriver> |
| 42 | + <!--Provided by the driver-binary-downloader-maven-plugin--> |
| 43 | + <!--suppress MavenModelInspection --> |
| 44 | + <webdriver.gecko.driver>${webdriver.gecko.driver}</webdriver.gecko.driver> |
| 45 | + <!--suppress MavenModelInspection --> |
| 46 | + <webdriver.chrome.driver>${webdriver.chrome.driver} |
| 47 | + </webdriver.chrome.driver> |
| 48 | + <!--suppress MavenModelInspection --> |
| 49 | + <webdriver.opera.driver>${webdriver.opera.driver}</webdriver.opera.driver> |
| 50 | + <!--suppress MavenModelInspection --> |
| 51 | + <phantomjs.binary.path>${phantomjs.binary.path}</phantomjs.binary.path> |
| 52 | + <!--suppress MavenModelInspection --> |
| 53 | + <webdriver.ie.driver>${webdriver.ie.driver}</webdriver.ie.driver> |
| 54 | + <!--suppress MavenModelInspection --> |
| 55 | + <webdriver.edge.driver>${webdriver.ie.driver}</webdriver.edge.driver> |
| 56 | + </systemPropertyVariables> |
| 57 | + </configuration> |
| 58 | + </plugin> |
| 59 | + <plugin> |
| 60 | + <groupId>org.apache.maven.plugins</groupId> |
| 61 | + <artifactId>maven-compiler-plugin</artifactId> |
| 62 | + <configuration> |
| 63 | + <source>1.8</source> |
| 64 | + <target>1.8</target> |
| 65 | + </configuration> |
| 66 | + </plugin> |
| 67 | + <plugin> |
| 68 | + <groupId>org.apache.maven.plugins</groupId> |
| 69 | + <artifactId>maven-surefire-plugin</artifactId> |
| 70 | + <configuration> |
| 71 | + <systemPropertyVariables> |
| 72 | + <!-- |
| 73 | + Change this to select the browser to use. E.g: firefox, chrome, edge, ect. |
| 74 | + --> |
| 75 | + <webdriver>firefox</webdriver> |
| 76 | + </systemPropertyVariables> |
26 | 77 | </configuration>
|
27 | 78 | </plugin>
|
28 | 79 | </plugins>
|
29 | 80 | </build>
|
30 | 81 |
|
| 82 | + <profiles> |
| 83 | + <profile> |
| 84 | + <id>develop</id> |
| 85 | + <activation> |
| 86 | + <property> |
| 87 | + <name>!env.TRAVIS</name> |
| 88 | + </property> |
| 89 | + </activation> |
| 90 | + </profile> |
| 91 | + </profiles> |
| 92 | + |
31 | 93 | <dependencies>
|
32 | 94 | <dependency>
|
33 | 95 | <groupId>org.webbitserver</groupId>
|
34 | 96 | <artifactId>webbit</artifactId>
|
35 | 97 | </dependency>
|
36 | 98 |
|
37 | 99 | <dependency>
|
38 |
| - <groupId>info.cukes</groupId> |
39 |
| - <artifactId>cucumber-jvm-deps</artifactId> |
| 100 | + <groupId>io.cucumber</groupId> |
| 101 | + <artifactId>cucumber-java8</artifactId> |
40 | 102 | <scope>test</scope>
|
41 | 103 | </dependency>
|
42 | 104 | <dependency>
|
|
56 | 118 | </dependency>
|
57 | 119 | <dependency>
|
58 | 120 | <groupId>org.seleniumhq.selenium</groupId>
|
59 |
| - <artifactId>selenium-firefox-driver</artifactId> |
| 121 | + <artifactId>selenium-java</artifactId> |
| 122 | + <scope>test</scope> |
| 123 | + </dependency> |
| 124 | + <dependency> |
| 125 | + <groupId>org.seleniumhq.selenium</groupId> |
| 126 | + <artifactId>selenium-remote-driver</artifactId> |
60 | 127 | <scope>test</scope>
|
61 | 128 | </dependency>
|
62 | 129 | <dependency>
|
|
0 commit comments