Description / Features
Thucydides was the most famous Greek Historian and nowadays is a very promising open source library that lets you use WebDriver/Selenium 2 to write better acceptance tests.
In a few words Thucydides helps you:
- 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
The plugin calculates several Thycudides metrics and imports them in SonarQubeTM ( see metics definitions below )
It adds also a new dashboard widget that supports localiztion.
Usage & Installation
- Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
- Restart the SonarQubeTM server
The current version of the plugin supports only maven projects and does not execute thucydides tests itself, so thucydides reports must be available before running a SonarQubeTM analysis.
The default location of thucydides report files is under target/site/thucydides and although you can define your own report path with a maven property, the plugin expects to find them in this location.
More on Thucydides reporting you can find here http://thucydides.wakaleo.com/#_thucydides_reporting
Currently there is no available configuration as the plugin uses the default values of thucydides properties
Thucydides plugin widget is available under the category Tests
Try the Plugin
To try the plugin you may find a maven sample project under src/main/resources.
- Unzip sample project in a local folder
Add to your settings.xml the following
Run the following Maven command:
- Run a SonarQubeTM analysis for the project:
Plugin works only for projects analysed by maven
No details are shown about features and user stories
No drill-down links are available
Number of Thucydides tests
Number of Passed Thucydides tests ( Succesful tests )
Number of Failed Thucydides tests ( Failed assertions or errors)
Number of Pedning Thucydides tests. These tests have not been executed yet.
Execution duration of Thucydides tests
|Succes Density||thucydides-success-density||no||Passed Tests / Tests * 100|
|Features||thucydides-features||no||Number of Features tested by Thucydides|
|User Stores||thucydides-stories||no||Number of User Stories tested by Thucydides|
Version 0.1 (1 issues)
|SONARPLUGINS-1867||Collect basic test execution results from Thucydides reports to feed Sonar|