Skip to content

TestSmells/TSDetect

Repository files navigation

TSDetect

Build Version Downloads

TSDetect is your all in one tool for deteing code smells within your tests. Based on the research by https://testsmells.org/, This plugin analyzes unit tests in order to find potential design flaws.

Installation (Needs to be updated)

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "TSDetect" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Contributing

For contributing test smells to the project see the Contributing Page

Setup

Clone repository

We recommend cloning through IntelliJ. This will ensure all dependencies are set up correctly. Be sure to give gradle time to finish setting up.

Set JDK Version

Ensure that project JDK and Language Level are set to 13 This can be found as shown below File > Project Structure > Project

Open Project Structure Select JDK13 and Language Level 13
Open Project Structre Select Project Structure

Running Plugin

Select the Run Plugin option from the drop down. Pasted image 20220407164839.png

Running Unit Tests

  • There is a known issue where gradle will not always update the version of java used to run unit tests, can be fixed manually in
  • This can be remedied by manually going into following setting sand updating to use java 13

Project Settings > Build > Execution > Deployment > Build Tools > Gradle


For more info, please go to https://testsmells.org/

Plugin based on the IntelliJ Platform Plugin Template.