TSDetect
TSDetect is an open-source test smell detection tool. TSDetect is available as an IntelliJ plugin and command-line tool.
Install / Use
/learn @TestSmells/TSDetectREADME
TSDetect
<!-- Plugin description -->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.
<!-- Plugin description end -->Installation (Needs to be updated)
-
Using IDE built-in plugin system:
<kbd>Settings/Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "TSDetect"</kbd> > <kbd>Install Plugin</kbd>
-
Manually:
Download the latest release and install it manually using <kbd>Settings/Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>⚙️</kbd> > <kbd>Install plugin from disk...</kbd>
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 <kbd>File</kbd> > <kbd>Project Structure</kbd> > <kbd>Project</kbd>
| Open Project Structure | Select JDK13 and Language Level 13 |
|------------------------------------------------------------------|-----------------------------------------------------------------------|
|
|
|
Running Plugin
Select the Run Plugin option from the drop down.

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
<kbd>Project Settings</kbd> > <kbd>Build</kbd> > <kbd>Execution</kbd> > <kbd>Deployment</kbd> > <kbd>Build Tools</kbd> > <kbd>Gradle</kbd>
For more info, please go to https://testsmells.org/
Plugin based on the IntelliJ Platform Plugin Template.
