MyGit

TestSmells/TestSmellDetector

Fork: 34 Star: 65 (更新于 1970-01-01 00:00:00)

license: GPL-3.0

Language: Java .

A tool to detect test smells in Java projects that utilize JUnit as the testing framework

最后发布版本: v2.2 ( 2022-06-15 01:41:03)

官方网址 GitHub网址

Test Smell Detector

Introduction

Unit test code, just like any other source code, is subject to bad programming practices, known also as anti-patterns, defects and smells. Smells, being symptoms of bad design or implementation decisions, has been proven to be responsible for decreasing the quality of software systems from various aspects, such as making it harder to understand, more complex to maintain, more prone to errors and bugs.

Test smells are defined as bad programming practices in unit test code (such as how test cases are organized, implemented and interact with each other) that indicate potential design problems in the test source code.

Project Overview

The purpose of this project is twofold:

  1. Contribute to the list of existing test smells, by proposing new test smells that developers need to be aware of.
  2. Provide developers with a tool to automatically detect test smell in their unit test code.

More Information

Visit the project website: https://testsmells.github.io/

Execution

Running the jar with --help will print its usage.

  • A CSV input file always need to be given as parameter, specified with -f;
  • A detection threshold can also be specified. Possible values are default and spadini. The flag is -t. By default, the tool uses the thresholds that have been originally implemented; with spadini, sensibility thresholds published by Spadini et.al. will be used.
  • One can specify the granularity of the detection. boolean will return either true or false, respectively if a given smell is present or not in the test; numerical will return instead the number of smelly instances detected.
Options:
  -f, --file PATH                  The csv input file
  -t, --thresholds [default|spadini]
                                   The threshold to use for the detection
  -g, --granularity [boolean|numerical]
                                   Boolean value of numerical for the
                                   detection
  -o, --output TEXT
  -h, --help                       Show this message and exit

最近版本更新:(数据更新于 1970-01-01 00:00:00)

2022-06-15 01:41:03 v2.2

2020-07-01 22:56:30 v2.1

2018-04-21 00:52:41 v2.0

2017-11-15 07:11:40 v1.0

主题(topics):

android, code-smells, java, javaparser, junit, rit, rit-college, smell, test-smells

TestSmells/TestSmellDetector同语言 Java最近更新仓库

2024-11-13 09:30:15 Tornaco/Thanox

2024-11-12 09:59:10 mybatis-flex/mybatis-flex

2024-11-11 23:58:45 PBH-BTN/PeerBanHelper

2024-11-10 07:12:10 Stirling-Tools/Stirling-PDF

2024-11-08 23:15:38 yuliskov/SmartTube

2024-11-08 05:44:55 jmdns/jmdns