Skip to content

Commit

Permalink
get rid test directory (via #71)
Browse files Browse the repository at this point in the history
  • Loading branch information
eroshenkoam authored Sep 27, 2021
1 parent 93d92c7 commit 135345d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ open class AllureAdapterExtension @Inject constructor(
task.run {
// Each task should store results in its own folder
// End user should not depend on the folder name, so we do not expose it
val rawResults = project.layout.buildDirectory.dir("allure-results/${task.name}").get().asFile
val rawResults = project.layout.buildDirectory.dir("allure-results").get().asFile
// See https://github.com/allure-framework/allure2/issues/1236
// We exclude categories.json since report task would copy categories right to the folder
// of the current task
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void shouldCreateAllureResults() {
.extracting("outcome")
.containsExactly(SUCCESS);

File resultsDir = new File(gradleRunner.getProjectDir(), "build/allure-results/test");
File resultsDir = new File(gradleRunner.getProjectDir(), "build/allure-results");
assertThat(resultsDir).as("Allure results directory")
.exists();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void allureReportIsNotGenerated() {
.filteredOn(task -> task.getPath().equals(":test") || task.getPath().equals(":allureReport"))
.extracting("outcome")
.containsExactly(SUCCESS);
File resultsDir = new File(projectDir.getAbsolutePath() + "/build/allure-results/test");
File resultsDir = new File(projectDir.getAbsolutePath() + "/build/allure-results");
// executor.json is always generated
assertThat(resultsDir.listFiles())
.filteredOn(file -> !file.getName().equals("executor.json"))
Expand Down

0 comments on commit 135345d

Please sign in to comment.