DARTS (Detection And Refactoring of Test Smells) is an Intellij plug-in which implements a state-of-the-art detection mechanism to detect instances of three test smell types, i.e., General Fixture, Eager Test, and Lack of Cohesion of Test Methods, at commit-level and enables their automated refactoring through the integrated APIs provided by Intellij. It also provides a mechanism able to mine data from projects' repositories in order to evaluate if detected smells impact on change- and defect- proneness of the production classes.
- Download the file
DARTS_DetectionAndRefactoringOfTestSmell.jar
in the Installer directory contained in this project. - Open your IntelliJ IDEA and go in the Settings/Preferences dialog.
- Select Plugins.
- On the Plugins page, click the wheel-shaped button and then click Install Plugin from Disk.
- Select the
DARTS_DetectionAndRefactoringOfTestSmell.jar
and click OK. - Click OK to apply the changes and restart the IDE.
In order to perform the detection, first of all build the project, then click on the Analyze menu > Test Smell Detection > Select between textual and structural detection. DARTS perfom an automatic analysis at commit phase; specifically when some smell code are committed it will perform the analysis on the code commited.
A step by step series of examples that tell you how to get a development env running.
- Clone this project.
- Open the project in IntelliJ.
- Go in the File/Project Structure/Project dialog.
- In the Project SDK section, click the
New...
button. - Select IntelliJ Platform Plugin SDK from the menu.
- Select your IntelliJ IDEA directory and click the OK button.
- Select the SDK version (1.8 or higher) and click OK button.
- Click Apply button.
If you want to contribute:
- Start by forking the repository and clone it locally
- Create your own branch
feature/featurename
- Do all the dirty work and write good commits message
- Create a Pull Request
Made with contributors-img.