Skip to content

Create test reports folder if it doesn't exist#173

Merged
mtojek merged 2 commits intoelastic:masterfrom
ycombinator:test-report-folder-setup
Nov 16, 2020
Merged

Create test reports folder if it doesn't exist#173
mtojek merged 2 commits intoelastic:masterfrom
ycombinator:test-report-folder-setup

Conversation

@ycombinator
Copy link
Copy Markdown
Contributor

@ycombinator ycombinator commented Nov 16, 2020

Follow up to #172.

In #172 we only create the test reports folder if elastic-package test is invoked. That is, the test reports folder was not being created if elastic-package test pipeline or elastic-package test system was invoked.

Initially I tried to fix this problem by creating the test reports folder for all possible invocations of elastic-package test, including it's subcommands. However, this led to another problem: if elastic-package test system was run followed by elastic-package test pipeline (or vice versa), the test results from the first subcommand invocation were being cleaned out by the second subcommand invocation.

So finally I decided that we should simply not clean out the test reports folder at all when elastic-package test or any of its subcommands are run. Instead, a user can use elastic-package clean (when we implement it) to clean out the test reports folder as needed.

@ycombinator ycombinator requested a review from mtojek November 16, 2020 09:51
@ycombinator ycombinator changed the title Create test reports folder in all invocations of test command Create test reports folder if it doesn't exist Nov 16, 2020
@ycombinator ycombinator marked this pull request as ready for review November 16, 2020 09:51
@elasticmachine
Copy link
Copy Markdown
Collaborator

elasticmachine commented Nov 16, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #173 updated]

  • Start Time: 2020-11-16T09:56:36.545+0000

  • Duration: 11 min 31 sec

Test stats 🧪

Test Results
Failed 0
Passed 9
Skipped 0
Total 9

@mtojek mtojek merged commit 0dc09d1 into elastic:master Nov 16, 2020
@ycombinator ycombinator deleted the test-report-folder-setup branch November 16, 2020 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants