Skip to content

Commit

Permalink
fix allureReport tasks execution (via #104)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianGM authored Oct 25, 2022
1 parent 3d50dd0 commit be42a50
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ open class AllureAdapterExtension @Inject constructor(

fun gatherResultsFrom(tasks: TaskCollection<out Task>) {
project.apply<AllureAdapterBasePlugin>()
tasks.names.onEach { exposeArtifact(tasks.named(it)) }
project.afterEvaluate {
tasks.names.forEach {
exposeArtifact(tasks.named(it))
}
}
tasks.configureEach {
internalGatherResultsFrom(this)
}
Expand Down

0 comments on commit be42a50

Please sign in to comment.