Skip to content

Learning JBehave, now using Gradle to compile and run tests

Notifications You must be signed in to change notification settings

marceloemanoel/JBehaveWithGradle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JBehavePoC

Description

This is a proof of concept of JBehave, just to study this library and the BDD concepts in Java. I also wanted to use Gradle for the first time.

Libraries used

This project uses Gradle to download its libraries and their dependencies. They are:

  • junit, because we have tests!
  • jbehave, obviously
  • jbehave-junit-runner, so we can have a nice output when running our tests in Eclipse

Why Gradle?

I've already made this same project using Maven.

@marceloemanoel got hungry when he saw it, as expected, and told me to use Gradle, as expected. So I used Gradle for the first time and took some conclusions.

Changes

There are very few changes from this project to the version that uses Maven.

The most visible ones are in the class CalculatorStories in order to solve some Gradle-related issues. There's a friendly and really necessary comment in the class explaining it.

If you want to analyse all the differences yourself, checkout both projects and run some diff tool.

Conclusions!

  • Gradle is easier to learn than Maven
  • Gradle has shorter configuration files than Maven's.
  • Gradle has no XML configuration files, and this alone can be a good reason to switch to Gradle

About

Learning JBehave, now using Gradle to compile and run tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 77.7%
  • Groovy 22.3%