Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/thucydides.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe}

Description / Features

The first Thucydides was thethe most famous Greek Historian and nowadays is a historian. Today Thucydides is also the name of a very promising open source library that lets you use WebDriver/Selenium 2 to write better acceptance tests.

...

  • Write tests that are more flexible and easier to maintain
  • Produce illustrated, narrative reports about your tests
  • Map your automated tests back to your requirements more easily
  • See how much of your application is actually being tested
  • And measure project progress

More You can find more information about Thucydides you can find at the official Thucydides web site and read the User Manualsite and in the user manual. 

The plugin calculates several Thycudides metrics and imports them in SonarQube( see metics metrics definitions below )
It adds also a new dashboard widget that supports localization. Include PageInclude - Plugin InstallationInclude - Plugin Installation

Requirements

Plugin version

0.1
Thucydides version 

0.8.15

(tick)

0.8.20(tick)

Include Page
Include - Plugin Installation
Include - Plugin Installation

Usage

The current version of the plugin supports only maven Maven projects and does not execute thucydides Thucydides tests itself, so thucydides Thucydides reports must be available before running a SonarQube analysis.
The default location of thucydides Thucydides report files is under target/site/thucydides and although you can define your own report path with a maven Maven property, the plugin expects to find them in this location.
More You can find more on Thucydides reporting you can find here here: http://thucydides.wakaleo.com/#_thucydides_reporting

Configuration

Currently there is are no available configuration as configurations; the plugin uses the default values of thucydides Thucydides properties.

 The Thucydides plugin widget is available under the category Tests .

Try the Plugin

To try the plugin you may find a maven sample can use the sample Maven project under src/main/resources.

  1. Unzip sample project in a local folder
  2. Add to your settings.xml the following

    Code Block
    <settings>
       <pluginGroups>
           <pluginGroup>net.thucydides.maven.plugins</pluginGroup>
           ...
       </pluginGroups>
    </settings>
  3. Run the following Maven command:

    No Format
    mvn clean verify thucydides:aggregate
  4. Run a SonarQube analysis for the project: mvn sonar:sonar

Known Limitations

Plugin The plugin works only for projects analysed by mavenwith Maven
No details are shown about features and user stories
No drill-down links are available 

...

Name

Key

Qualitative

Description

Tests

thucydides-tests

no

Number of Thucydides tests

Passed

thucydides-tests-passed

no

Number of Passed Thucydides tests ( Succesful tests )

Failed

thucydides-tests-failed

no

Number of Failed Thucydides tests ( Failed assertions or errors)

Pending

thucydides-tests-pending

no

Number of Pedning Thucydides tests. These tests have not been executed yet.

Duration

thucydides-tests-duration

no

Execution duration of Thucydides tests

Succes Densitythucydides-success-densitynoPassed Tests / Tests * 100
Featuresthucydides-featuresnoNumber of Features tested by Thucydides
User Storesthucydides-storiesnoNumber of User Stories tested by Thucydides

 

Include Page
Include - Plugin Installation
Include - Plugin Installation

Future Work

Plenty !!!

Change Log

...