Catch test smells as you write.

AriesLinter flags 17 kinds of test smells in your Java tests while you type, in VS Code, IntelliJ and any editor that runs Checkstyle. No test run. No separate analysis step.

  • Open source, MIT
  • Java 11 or newer
  • Built on Checkstyle

From research at UFBA: SBES 2025 and SBES CTIC 2026 (honorable mention)

Feedback while you type, not after the commit.

Tools like tsDetect and JNose analyse code that is already written, from a separate step. RAIDE runs in Eclipse and covers two smells. AriesLinter reports through the Checkstyle integration your editor already has, so the smell shows up on the line you are typing.

  • No changes to production code.
  • No test execution: it reads the syntax tree.
After the facttsDetect, JNose
  1. Write the test
  2. Commit
  3. Run the tool
  4. Read the report
  5. Refactor
While you writeAriesLinter
  1. Write the test, the smell is underlined
  2. Fix it
  3. Commit

The 17 smells it detects.

Pick one to see a test with the smell, a cleaner version, and how the detector scored on it.

Assertion Roulette

Assertions

Several assertions in one test with no failure message. When the test fails, you cannot tell which assertion broke.

With the smell
assertEquals("PAID", order.status());
assertTrue(order.isShipped());
assertNotNull(order.id());
Without it
assertEquals("PAID", order.status(), "order status");
assertTrue(order.isShipped(), "order shipped");
assertNotNull(order.id(), "order id");

Known limit: a message that is not a literal (a variable, a method call) is counted as missing.

Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Duplicate Assert

Assertions

The same assertion, with the same parameters, repeated inside one test.

With the smell
assertEquals("ana", user.name(), "name");
assertEquals("ana", user.name(), "name");
Without it
assertEquals("ana", user.name(), "name");
assertEquals("ana@mail.test", user.email(), "email");
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Magic Number

Assertions

A numeric literal in an assertion that says nothing about why that number is expected.

With the smell
assertEquals(86400, session.ttlSeconds(), "ttl");
Without it
private static final int ONE_DAY_SECONDS = 86400;

assertEquals(ONE_DAY_SECONDS, session.ttlSeconds(), "ttl");

Known limit: it also flags 0 and 1, which are often fine.

Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Redundant Assertion

Assertions

An assertion that always passes or always fails, such as comparing identical values.

With the smell
assertTrue(true);
assertEquals(user, user);
Without it
assertTrue(result.isOk(), "login result");
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Sensitive Equality

Assertions

Comparing objects through toString(). Any change to the text representation breaks the test.

With the smell
assertEquals("User{name=ana}", user.toString(), "user");
Without it
assertEquals(expectedUser, user, "user");
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Unknown Test

Assertions

A test with no assertion. JUnit marks it as passed whatever happens.

With the smell
@Test
void syncsAccounts() {
    service.sync();
}
Without it
@Test
void syncsAccounts() {
    service.sync();
    assertTrue(service.isInSync(), "in sync");
}
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Conditional Test Logic

Test structure

if, switch, for or while inside a test. A test should run straight through, with no branches.

With the smell
for (Item item : cart.items()) {
    if (item.isTaxable()) {
        assertTrue(item.hasTax(), "tax");
    }
}
Without it
@Test
void taxableItemHasTax() {
    assertTrue(taxableItem.hasTax(), "tax");
}
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Exception Handling

Test structure

try, catch or throw inside a test, so pass or fail depends on an exception instead of the framework.

With the smell
try {
    parser.parse("x");
    fail("expected an error");
} catch (ParseException e) {
}
Without it
assertThrows(ParseException.class, () -> parser.parse("x"));
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Empty Test

Test structure

A test method with no executable statements. It passes and proves nothing.

With the smell
@Test
void refundsOrder() {
}
Without it
@Test
void refundsOrder() {
    order.refund();
    assertTrue(order.isRefunded(), "refunded");
}
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Ignored Test

Test structure

A test switched off with @Ignore. It stays in the suite and never runs.

With the smell
@Ignore
@Test
void legacyCheckout() {
    // ...
}
Without it
// Fix the test, or delete it.
@Test
void legacyCheckout() {
    // ...
}

Known limit: only JUnit 4 @Ignore is detected. JUnit 5 @Disabled is not.

Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Verbose Test

Test structure

A test method longer than 30 lines. Long tests are hard to read and hide what they check.

With the smell
@Test
void checkout() {
    // 30+ lines of setup,
    // actions and checks
    // all in one method
}
Without it
@Test
void checkout() {
    Cart cart = cartWithTwoBooks();
    Receipt receipt = pay(cart);
    assertPaid(receipt);
}

Known limit: the 30-line threshold is fixed and cannot be configured.

Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Redundant Print

Test structure

Leftover print statements in a test. They clutter the console and check nothing.

With the smell
System.out.println("result = " + result);
assertTrue(result.isOk(), "result");
Without it
assertTrue(result.isOk(), "result");
Precision
1.00
Recall
1.00
F1
1.00
6 test methods with the smell and 10 without, labelled by three researchers.

Constructor Initialization

Fixture and setup

A test class with a constructor. Set fields up in a setUp method instead.

With the smell
class CartTest {
    private Cart cart;

    CartTest() {
        cart = new Cart();
    }
}
Without it
class CartTest {
    private Cart cart;

    @BeforeEach
    void setUp() {
        cart = new Cart();
    }
}
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

General Fixture

Fixture and setup

setUp creates fields that some tests never use. The shared fixture is too general.

With the smell
@BeforeEach
void setUp() {
    db = new FakeDb();
    mailer = new FakeMailer(); // 1 of 4 tests
}
Without it
@BeforeEach
void setUp() {
    db = new FakeDb();
}

@Test
void sendsReceipt() {
    mailer = new FakeMailer();
    // ...
}
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Mystery Guest

Resources and time

A test that depends on an external resource, such as a file, a database or the network, that the test itself does not show.

With the smell
File users = new File("data/users.csv");
List<User> list = loader.load(users);
Without it
List<User> list = loader.parse("ana,ana@mail.test");

The one miss in the evaluation: one Mystery Guest instance was not detected (recall 0.90). It also flags @TempDir.

Precision
1.00
Recall
0.90
F1
0.95
10 test methods with the smell and 10 without, labelled by three researchers.

Resource Optimism

Resources and time

Using a file or external resource without first checking that it exists.

With the smell
File config = new File("app.properties");
settings.load(config);
Without it
File config = new File("app.properties");
assumeTrue(config.exists(), "config present");
settings.load(config);
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Sleepy Test

Resources and time

Thread.sleep() inside a test. It slows the suite and makes the result depend on timing.

With the smell
Thread.sleep(2000);
assertTrue(queue.isEmpty(), "drained");
Without it
await().until(queue::isEmpty);
Precision
1.00
Recall
1.00
F1
1.00
10 test methods with the smell and 10 without, labelled by three researchers.

Source: Table 1 of the CTIC 2026 paper.

Install in three steps.

The installer finds your editors, downloads the AriesLinter and Checkstyle JARs (SHA-256 checked), writes checkstyle.xml, configures the editor, and ends by running Checkstyle on a sample file to prove the checks work.

  1. Download the installer

    curl -sSL -o install.py https://raw.githubusercontent.com/viRafael/arieslinter/main/install.py
    curl.exe -sSL -o install.py https://raw.githubusercontent.com/viRafael/arieslinter/main/install.py
  2. Read it

    It only talks to GitHub, and every file it downloads is pinned by SHA-256. Read it before you run it. Open install.py on GitHub

  3. Run it

    python3 install.py
    py install.py

    Or skip the prompts:

    python3 install.py --project /path/to/project --ide code,cursor --yes
    py install.py --project C:\path\to\project --ide code,cursor --yes

Built in a research lab, measured in the open.

AriesLinter comes from an undergraduate research project at UFBA, funded by PIBIC/CNPq. Two papers describe it, and the data is public.

From Reactive to Preventive: Real-Time Test Smell Avoidance with Linting

Honorable mention SBES CTIC 2026, CBSoft 2026, São Paulo

Rafael Rocha, Tássio Virgínio, Ivan Machado

Grows the tool to 17 smells and evaluates it twice: accuracy against a hand-built oracle, and a survey of 17 developers.

Read the PDFReplication package Demo video

AriesLinter: Sniffing Test Smells Before They Happen

SBES 2025, Tools Track, Recife

Rafael Rocha, Eronildo Junior, Tássio Virgínio, Larissa Rocha, Carla Bezerra, Ivan Machado

The tool paper, with the first version of the linter.

Read the paper DOI

Detection accuracy

The oracle has 335 test methods from 10 Apache Software Foundation projects. Precision was 1.00 for all 17 smells. Recall was 1.00 for 16 of them. For Mystery Guest it missed one of ten, so recall was 0.90.

  • 16 smells precision 1.00, recall 1.00.
  • Mystery Guest precision 1.00, recall 0.90: one of ten instances was missed. See its panel

Each smell was tested on only 10 smelly and 10 clean methods, and the candidates came from JNose before three researchers checked them by hand. A more rigorous study is in preparation.

What 17 developers said

Seven undergraduate, seven master's and three PhD students, all from UFBA, recruited by convenience. They installed the tool, tried it on examples, and answered a questionnaire.

  • Found real-time detection useful or very useful94.1%
  • Prefer real-time over detection after the code is written88.2%
  • Would use it in their regular workflow88.2%
  • Said immediate feedback would encourage them to refactor as they write (definitely or probably)94.1%
  • Rated installation easy or very easy35.3%
It prevents the inclusion of smells and eliminates the need to refactor the test code later.
Participant, survey

One university and a small sample: the results do not generalise to industry teams.

What it does not do yet.

  • Tests are recognised by the simple name of the annotation. A fully qualified @org.junit.Test, JUnit 3 and TestNG are not recognised.
  • Ignored Test finds JUnit 4 @Ignore only. JUnit 5 @Disabled is not detected.
  • Verbose Test uses a fixed limit of 30 lines.
  • Some checks have known false positives: Magic Number flags 0 and 1, and Mystery Guest flags @TempDir.
  • The detectors are static heuristics. Read the output as a lead, not a verdict.
Full list in the README

Developed at AriesLab, UFBA.

Rafael RochaDeveloper of AriesLinter, research student, PIBIC/CNPq@viRafael

Advised by Tássio Virgínio and Ivan Machado. The 2025 paper has six authors; the tool is developed by Rafael.

Instituto de Computação, Universidade Federal da Bahia. AriesLab

Cite

Cite the paper that matches the version you use.

SBES CTIC 2026
@inproceedings{rocha2026reactive,
  author    = {Rocha, Rafael and Virg{\'i}nio, T{\'a}ssio and Machado, Ivan},
  title     = {From Reactive to Preventive: Real-Time Test Smell Avoidance with Linting},
  booktitle = {SBES CTIC, CBSoft 2026},
  year      = {2026},
  address   = {S{\~a}o Paulo, SP, Brazil},
  note      = {Replication package: https://zenodo.org/records/20945473}
}
SBES 2025, Tools Track
@inproceedings{rocha2025arieslinter,
  author    = {Rocha, Rafael and Junior, Eronildo and Virg{\'i}nio, T{\'a}ssio and Rocha, Larissa and Bezerra, Carla and Machado, Ivan},
  title     = {AriesLinter: Sniffing Test Smells Before They Happen},
  booktitle = {Anais do XXXIX Simp{\'o}sio Brasileiro de Engenharia de Software (SBES)},
  year      = {2025},
  pages     = {990--995},
  publisher = {SBC},
  address   = {Porto Alegre, RS, Brasil},
  doi       = {10.5753/sbes.2025.11576}
}

Run it on the next test you write.

Download the installer, read it, run it. If it fails, open an issue.