Skip to content

Commit

Permalink
Projeto base para Serenity BDD
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoquirino committed Jun 29, 2018
1 parent 04f06e0 commit de55852
Show file tree
Hide file tree
Showing 19 changed files with 213 additions and 446 deletions.
104 changes: 68 additions & 36 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,55 +9,58 @@
<version>1.0-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<encoding>UTF-8</encoding>
<java.version>1.8</java.version>
<junit.version>5.3.0-M1</junit.version>
<junit.platform.version>1.3.0-M1</junit.platform.version>
<junit.version>4.12</junit.version>
<maven.surefire.plugin.version>2.22.0</maven.surefire.plugin.version>
<jacoco.version>0.8.1</jacoco.version>
<maven.failsafe.plugin.version>2.22.0</maven.failsafe.plugin.version>
<selenium.version>3.13.0</selenium.version>
<slf4j.version>1.7.25</slf4j.version>
<serenity.version>1.9.25</serenity.version>
<serenity.cucumber.version>1.9.8</serenity.cucumber.version>
<webdriver.gecko.driver>C:\\ambiente\\geckodriver\\geckodriver.exe</webdriver.gecko.driver>
</properties>

<dependencies>
<!-- Dependências do JUNIT 5 -->
<!-- Dependências do JUNIT 4 -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<!-- Dependências do Selenium WebDriver -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- Dependências do EASYMOCK -->
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.6</version>
<scope>test</scope>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>
<!-- Dependências para trabalhar com Suítes de Testes -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-suite-api</artifactId>
<version>${junit.platform.version}</version>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>${selenium.version}</version>
</dependency>
<!-- Dependências do Serenity-Cucumber -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-runner</artifactId>
<version>${junit.platform.version}</version>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
</dependency>
<!-- Dependências do Selenium WebDriver -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.13.0</version>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-junit</artifactId>
<version>${serenity.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>3.13.0</version>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-cucumber</artifactId>
<version>${serenity.cucumber.version}</version>
</dependency>
</dependencies>

Expand All @@ -81,22 +84,51 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration>
<argLine>-noverify</argLine>
<properties>
<includeTags>Automaticos</includeTags>
<!--<excludeTags></excludeTags>-->
</properties>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration>
<!-- <argLine>-noverify</argLine> -->
<includes>
<include>**/*.java</include>
</includes>
<systemProperties>
<webdriver.gecko.driver>${webdriver.gecko.driver}</webdriver.gecko.driver>
</systemProperties>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>${serenity.version}</version>
<dependencies>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-surefire-provider</artifactId>
<version>${junit.platform.version}</version>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions src/main/java/br/pro/diegoquirino/calculadora/model/Produto.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit de55852

Please sign in to comment.