Skip to content

Support for excluding private methods in utbot-gradle #482

Closed
@mmvpm

Description

@mmvpm

Description

Out gradle plugin collects all declared methods from the class. But sometimes there is no need to test private methods. So we should add a field testPrivateMethods: Boolean to the plugin configuration.

Expected behavior

The user can configure the plugin:

sarifReport {
    testPrivateMethods = false
}

or just execute the task:

generateTestsAndSarifReport -PtestPrivateMethods='false'

Context

Gradle plugin documentation: utbot-gradle/docs/utbot-gradle.md

Metadata

Metadata

Assignees

Labels

ctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions