prmr / DScribe-plugin

Eclipse plug-in for the DScribe test generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Eclipse Plugin for DScribe

McGill Logo     DScribe Logo     Eclipse Logo

Overview

  • Do you frequently copy-paste exisiting unit tests to test a recurrent specification?
  • Do you frequently copy-paste existing documentation fragments to document a recurrent specification?
  • Do you find it annoying to update both the corresponding unit tests AND documentation fragments when a specification evolves?

If you answered yes to any of the above questions, then DScribe is the right tool for you!

DScribe allows you to test and document recurring concerns consistently and with ease. You simply define joint templates to capture the structure to test and document a specification. Then, you use method-level Java annotations to invoke the templates.

To learn more about DScribe, visit the DScribe GitHub repository.

Documentation

Creating and Invoking DScribe Templates
To learn how to create and invoke your own DScribe templates, visit DScribe's README.

Running DScribe in Eclipse
To generate unit tests and documentation for a production class(es):

  1. Select the target class(es) in Eclipse's Project Explorer view.
    • To select one class, simply click on it with your mouse.
    • To select multiple classes, hold down the Ctrl key and click on each class one by one.
  2. Perform a Right click. The Eclipse dropdown menu will appear.
  3. Click the Run DScribe command in the dropdown menu (see screenshot).

Once DScribe terminates, a message dialog will appear to display the execution results. If DScribe runs successfully, the generated documentation and unit tests will be added to the production class and its corresponding test class, respectively.

Publications

Download

DScribe is distributed under the terms of the Apache License v 2.0. To install the DScribe Eclipse plugin, follow the steps below.

System requirements: Eclipse 3.4, JavaSE 14. DScribe is currently tested on Windows only.

To install DScribe:

  1. From the Eclipse menu bar, select Help > Install New Software.
  2. Click the Add button. This Add Repository window will appear.
  3. For the name, enter DScribe. For the Location, enter https://www.cs.mcgill.ca/~martin/DScribeUpdateSite. Click Add.
  4. Select the new DScribe entry in the list and click Next twice.
  5. Select that you accept the terms of the license agreement and click Finish.
  6. Restart your workspace.

Contact

For any questions, concerns, or suggestions, please free feel to contact Alexa Hernandez.

About

Eclipse plug-in for the DScribe test generator

License:Apache License 2.0


Languages

Language:Java 100.0%