Skip to content

beluamat29/bdd_spread_sheet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proyecto base con Cucumber

Este proyecto cuenta con el sistema de dependencias en gradle y maven para poder contar con un ambiente en el cual se pueda ejecutar el ciclo de ATDD.

IMPORTANTE: Evite clonar el proyecto!!!

Descargar el proyecto:

  1. Hacer un fork de este proyecto.
  2. Clonar el repositorio cloneado.
  3. Configurar un remoto nuevo llamado upstream utilizando el comando git remote add upstream git@github.com:UNVQUI/bdd_spread_sheet.git.

Como configuro el proyecto utilando IntelliJ como IDE

Instalar el gestor de dependencias (gradle o maven).

Verificando herramientas:

Estas verificaciones deberán realizarse desde la carpeta del proyecto.

Gradle

Deberían poder ejecutar el comando ./gradlew cucumber obteniendo una salida similar a la siguiente:

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :cucumber
Feature: Gradle-Cucumber integration

  Scenario: Just a failing scenario # src/test/resources/gradle/cucumber/gradle.feature:3
    When I run a failing step       # BasicStepdefs.I_run_a_failing_step()

Feature: Sell Content

  Scenario: Set cell content with number # src/test/resources/gradle/cucumber/spreadsheet.feature:3
    Given Empty spreadsheet              # SpreadsheetStepdefs.iEmptySpreadSheet()
    When I set "a1" content with "1"     # SpreadsheetStepdefs.iSetContentWith(String,String)
    Then The cell "a1" has value "1"     # SpreadsheetStepdefs.iGetContent(String,String)

  Scenario: Set cell content with label        # src/test/resources/gradle/cucumber/spreadsheet.feature:8
    Given Empty spreadsheet                    # SpreadsheetStepdefs.iEmptySpreadSheet()
    When I set "a2" content with label "label" # SpreadsheetStepdefs.iSetContentWithLabel(String,String)
    Then The cell "a2" has value label "label" # SpreadsheetStepdefs.the_cell_has_value_label(String,String)

3 Scenarios (3 passed)
7 Steps (7 passed)
0m0.201s

Maven

Deberían poder ejecutar el comando mvn test obteniendo una salida similar a la siguiente:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running gradle.cucumber.RunCukesTest
Feature: Gradle-Cucumber integration

  Scenario: Just a failing scenario # gradle/cucumber/gradle.feature:3
    When I run a failing step       # BasicStepdefs.I_run_a_failing_step()

Feature: Sell Content

  Scenario: Set cell content with number # gradle/cucumber/spreadsheet.feature:3
    Given Empty spreadsheet              # SpreadsheetStepdefs.iEmptySpreadSheet()
    When I set "a1" content with "1"     # SpreadsheetStepdefs.iSetContentWith(String,String)
    Then The cell "a1" has value "1"     # SpreadsheetStepdefs.iGetContent(String,String)

  Scenario: Set cell content with label        # gradle/cucumber/spreadsheet.feature:8
    Given Empty spreadsheet                    # SpreadsheetStepdefs.iEmptySpreadSheet()
    When I set "a2" content with label "label" # SpreadsheetStepdefs.iSetContentWithLabel(String,String)
    Then The cell "a2" has value label "label" # SpreadsheetStepdefs.the_cell_has_value_label(String,String)

3 Scenarios (3 passed)
7 Steps (7 passed)
0m0.247s

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.765 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

Integración con IDE (IntelliJ)

Instalar los plugins (según sistema de dependencias elegido) según muestran las capturas.

Gradle

gradle_plugin_ide

Maven

maven_plugin_ide.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 87.3%
  • Gherkin 12.7%