Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Mar 10, 2024
1 parent 35fe9bd commit 7392b6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,15 @@ class TestEngineLauncher(
return this
}

/**
* Note: If after invoking this method, the [withConfiguration] is invoked, then any changes
* here will be lost.
*/
fun withPrivate(private: Boolean): TestEngineLauncher {
projectConfiguration.includePrivateClasses = private
return this
}

fun withConfiguration(configuration: ProjectConfiguration): TestEngineLauncher {
return TestEngineLauncher(
platform = platform,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal fun setupLauncher(
.withExtensions(listOfNotNull(filter))
.withTagExpression(args.tagExpression?.let { TagExpression(it) })
.withClasses(specs)
.withConfiguration(ProjectConfiguration().also { it.includePrivateClasses = args.private })
.withPrivate(args.private)
}

/**
Expand Down

0 comments on commit 7392b6e

Please sign in to comment.