Skip to content

Detect ExtentReports usage in code (MIG-018) #37

Done

Description

@shossain786

The analyzer finds ExtentReports in pom.xml / build.gradle but does not flag the code that uses it. Selenium Boot writes its own HTML report (target/selenium-boot-report.html), so that code is usually a big chunk of the migration.

Add rule MIG-018 (MANUAL): flag uses of ExtentReports, ExtentTest and ExtentSparkReporter, at the line where each is created or declared. Suggested message: "ExtentReports: Selenium Boot generates an HTML report out of the box; remove after migrating custom logging to StepLogger."

Where: src/main/java/com/seleniumboot/migrator/Analyzer.java. Follow MIG-014 (Thread.sleep) as the pattern.

Done when: a fixture class that uses ExtentReports gives MIG-018 findings, a project without it gives none, the rule has a label in Report.ruleLabel, and mvn test passes.

Activity

  1. Jennydou517 commented on Nov 22, 2026

    @Jennydou517
    Contributor

    Hi! I’d like to work on this issue. I’ll use MIG-014 as a reference and add tests for code with and without ExtentReports usage.

  2. shossain786 commented on Nov 22, 2026

    @shossain786
    ContributorAuthor

    @Jennydou517 Assigned, thanks! I see #39 is already up; I'll review it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions