All Projects → albertogoffi → toradocu

albertogoffi / toradocu

Licence: other
Toradocu - automated generation of test oracles from Javadoc documentation

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
python
139335 projects - #7 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to toradocu

fast-test
fast-test是基于Java的自动化测试工具集合,包含自动测试平台(后端Vue),自动测试框架,可以帮助测试人员快速构建各类测试工具和自动化测试框架。请点星支持!
Stars: ✭ 112 (+187.18%)
Mutual labels:  test-automation, testing-tools
scenarioo
Scenarioo Docu Viewer for Automated Documentation using UI/E2E-Tests
Stars: ✭ 62 (+58.97%)
Mutual labels:  test-automation, testing-tools
toster
DSL framework for testing Android apps
Stars: ✭ 31 (-20.51%)
Mutual labels:  test-automation, testing-tools
jest-gql
✅🚀GraphQL based tests for Jest and Apollo
Stars: ✭ 33 (-15.38%)
Mutual labels:  test-automation, testing-tools
main
Mocks Server monorepo
Stars: ✭ 109 (+179.49%)
Mutual labels:  test-automation, testing-tools
allure-nunit
Archived - Allure adapter for NUnit framework.
Stars: ✭ 45 (+15.38%)
Mutual labels:  test-automation, testing-tools
vividus-starter
VIVIDUS-based test project template
Stars: ✭ 43 (+10.26%)
Mutual labels:  test-automation, testing-tools
Gauge
Light weight cross-platform test automation
Stars: ✭ 2,622 (+6623.08%)
Mutual labels:  test-automation, testing-tools
sandboni-core
Sandboni - Java test optimization library which reduces test execution time without compromising quality
Stars: ✭ 27 (-30.77%)
Mutual labels:  test-automation, testing-tools
saloon
An E2E test seeder for enterprise web applications
Stars: ✭ 30 (-23.08%)
Mutual labels:  test-automation, testing-tools
kentan
A modular test data generator for TypeScript
Stars: ✭ 38 (-2.56%)
Mutual labels:  test-automation, testing-tools
carina
Carina automation framework: Web, Mobile, API, DB etc testing...
Stars: ✭ 652 (+1571.79%)
Mutual labels:  test-automation, testing-tools
Mockito Scala
Mockito for Scala language
Stars: ✭ 231 (+492.31%)
Mutual labels:  test-automation, testing-tools
karate
Test Automation Made Simple
Stars: ✭ 6,384 (+16269.23%)
Mutual labels:  test-automation, testing-tools
Recheck Web
recheck for web apps – change comparison tool with local Golden Masters, Git-like ignore syntax and "Unbreakable Selenium" tests.
Stars: ✭ 224 (+474.36%)
Mutual labels:  test-automation, testing-tools
SHAFT ENGINE
SHAFT is an MIT licensed test automation engine. Powered by best-in-class frameworks like Selenium WebDriver, Appium & RestAssured it provides a wizard-like syntax to increase productivity, and built-in wrappers to eliminate boilerplate code and to ensure your tests are extra stable and your results are extra reliable.
Stars: ✭ 170 (+335.9%)
Mutual labels:  test-automation, testing-tools
Tork
💞 Tests your Ruby code, in parallel, as you change it
Stars: ✭ 185 (+374.36%)
Mutual labels:  test-automation, testing-tools
Hitchhiker
a Restful Api test tool
Stars: ✭ 2,175 (+5476.92%)
Mutual labels:  test-automation, testing-tools
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✭ 41 (+5.13%)
Mutual labels:  test-automation, testing-tools
test junkie
Highly configurable testing framework for Python
Stars: ✭ 72 (+84.62%)
Mutual labels:  test-automation, testing-tools

Toradocu: automated generation of test oracles from Javadoc documentation

Build Status

Toradocu generates assertions from the Javadoc documentation of a class.

Overview

Toradocu takes the source code of a class as input and produces a set of specifications in JSON format. Toradocu can translate all kind of specifications at the method level:

  • preconditions;
  • normal postconditions;
  • exceptional postconditions.

The tool combines different translations approaches: pattern match, syntax match and semantic match. All the generated specifications are executable and guaranteed to compile.

Toradocu can also generate aspects that can be used as test oracles.

Learn more

Toradocu is described in the following publications:

Aspects tutorial

To see how to use Toradocu to automatically add test oracles to your test suite follow the tutorial instructions.

Building Toradocu

To compile Toradocu run the command: ./gradlew shadowJar

This will create the file build/libs/toradocu-1.0-all.jar. The size of file is approximately 1 GB.

Building Toradocu requires Java JDK 1.8+.

Running Toradocu

Toradocu is a command-line tool. The list of all Toradocu command-line options is available on the wiki. To get a list of available command-line parameters, execute

java -jar build/libs/toradocu-1.0-all.jar --help

A typical Toradocu invocation looks like this:

java -jar toradocu-1.0-all.jar \
   --target-class mypackage.MyClass \
   --test-class mypackage.MyTest \
   --source-dir project/src \
   --class-dir project/bin \
   --aspects-output-dir aspects

Toradocu + Randoop integration

Toradocu's assertions are integrated in Randoop, to augment its generated test cases with semantically meaningful oracles. Follow this link to see how the integration works:

https://github.com/ariannab/toyproject

Using Toradocu Aspects

With those options, Toradocu generates AspectJ aspects in the directory specified with the option --aspects-output-dir. In the aspects output directory, Toradocu places the source code of the aspects and an aop.xml that lists the generated aspects and that is used by the AspectJ compiler.

Aspects generated by Toradocu are standard AspectJ aspects and can be used to instrument an existing test suite. This is done by using the AspectJ compiler to weave the source files under test with the aspects generated by Toradocu.

To augment an existing test suite with Toradocu's oracles you have to:

  1. Generate the aspects with Toradocu.
  2. Compile the generated aspects.
  3. Weave the existing test suites and the system under test.
  4. Run the weaved test suite.

To compile the generated aspects you can use javac. Just be sure that JUnit, the AspectJ weaver, and your system under test are on the classpath.

To weave the existing test suite and the system under test, you can use the AspectJ compiler.

Run the weaved test suite as as you would normally.

Please refer to the AspectJ documentation for more information.

Contributing to Toradocu

Information for contributors can be found on the wiki pages.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].