-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Reporting/Test] move functional tests to apps #64368
[Reporting/Test] move functional tests to apps #64368
Conversation
commit 5953089c03bea6b2d091f7723fea25bb1c210ee8 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 18:29:55 2020 -0700 move tests to apps commit 39adeaae6d3502d2c6da4e6111c2a396f2a7aedb Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:49:20 2020 -0700 update archive with better dashboard commit 55b600748356c1adc5e75669b0c5588a812e401d Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:16:53 2020 -0700 fix the refactoring bugs commit 11aff10cd8009aeb9bb78aa5ce0b37a72d47776e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:16:28 2020 -0700 remove unused fixtuers commit 05c33817c8eb67c461ac012cf2f71a9c01f1a91e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 16:37:36 2020 -0700 Start of refactoring commit b63c182b5f32b19dc3ca715efdbc5f18fcc02f67 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 16:32:50 2020 -0700 Todo comments commit 1e0105e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 14:31:58 2020 -0700 revert unrelated change commit 206fd14 Merge: 0d4c2ad 8343064 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 14:28:45 2020 -0700 Merge branch 'master' into reporting/test-better commit 0d4c2ad Author: Timothy Sullivan <[email protected]> Date: Wed Apr 8 10:41:19 2020 -0700 fix ts commit 890128c Merge: d9ce402 3598b8c Author: Timothy Sullivan <[email protected]> Date: Wed Apr 8 10:31:09 2020 -0700 Merge branch 'master' into reporting/test-better commit d9ce402 Author: Timothy Sullivan <[email protected]> Date: Tue Apr 7 08:31:58 2020 -0700 [Reporting] convert all server unit tests to TypeScript
Pinging @elastic/kibana-reporting-services (Team:Reporting Services) |
@@ -1,153 +0,0 @@ | |||
## The Reporting Tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This README has a lot of information, but I think the only useful part is about how to update the baseline snapshots.
The previous steps for doing so were a bit complicated - I've updated the snapshot when I switched the tests to use an archived dashboard, and it was way easier than what the README said. The simplified instructions are moved out to x-pack/test/functional/apps/dashboard/reporting/README.md
-- just download the report and save it in the reports/baselines
folder. Easy!
As of 8.0, Reporting no longer supports backwards-compatibility URLs, so all that info was obsolete.
@@ -0,0 +1,17 @@ | |||
## The Reporting Tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this information isn't really dashboard specific, should we but the readme in functional/reports
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this information isn't really dashboard specific
For now, this information is only specific to dashboards because it's the only Reporting test that is enabled for this. Other app integrations don't yet have the image comparison test that Dashboard does. When that happens, it might be OK to just copy the file to visualize/reporting
or canvas/reporting
.
should we but the readme in functional/reports instead?
There is no functional/reports
folder - as part of this PR, we're taking away the notion that Reporting is a standalone app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant keeping the folder just for the readme so people can find it more easily, but copying seems even better 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the follow-up :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general fine with this change, left two little remarks about documentation
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* Squashed commit of the following: commit 5953089c03bea6b2d091f7723fea25bb1c210ee8 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 18:29:55 2020 -0700 move tests to apps commit 39adeaae6d3502d2c6da4e6111c2a396f2a7aedb Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:49:20 2020 -0700 update archive with better dashboard commit 55b600748356c1adc5e75669b0c5588a812e401d Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:16:53 2020 -0700 fix the refactoring bugs commit 11aff10cd8009aeb9bb78aa5ce0b37a72d47776e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:16:28 2020 -0700 remove unused fixtuers commit 05c33817c8eb67c461ac012cf2f71a9c01f1a91e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 16:37:36 2020 -0700 Start of refactoring commit b63c182b5f32b19dc3ca715efdbc5f18fcc02f67 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 16:32:50 2020 -0700 Todo comments commit 1e0105e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 14:31:58 2020 -0700 revert unrelated change commit 206fd14 Merge: 0d4c2ad 8343064 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 14:28:45 2020 -0700 Merge branch 'master' into reporting/test-better commit 0d4c2ad Author: Timothy Sullivan <[email protected]> Date: Wed Apr 8 10:41:19 2020 -0700 fix ts commit 890128c Merge: d9ce402 3598b8c Author: Timothy Sullivan <[email protected]> Date: Wed Apr 8 10:31:09 2020 -0700 Merge branch 'master' into reporting/test-better commit d9ce402 Author: Timothy Sullivan <[email protected]> Date: Tue Apr 7 08:31:58 2020 -0700 [Reporting] convert all server unit tests to TypeScript * fix imports and readmes * remove not-needed readme * remove extra info from readme * correct some comments * log the error that was caught * fix config path in readme * fix readme instructions to point to updated paths Co-authored-by: Elastic Machine <[email protected]>
* [Reporting/Test] move functional tests to apps (#64368) * Squashed commit of the following: commit 5953089c03bea6b2d091f7723fea25bb1c210ee8 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 18:29:55 2020 -0700 move tests to apps commit 39adeaae6d3502d2c6da4e6111c2a396f2a7aedb Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:49:20 2020 -0700 update archive with better dashboard commit 55b600748356c1adc5e75669b0c5588a812e401d Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:16:53 2020 -0700 fix the refactoring bugs commit 11aff10cd8009aeb9bb78aa5ce0b37a72d47776e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 17:16:28 2020 -0700 remove unused fixtuers commit 05c33817c8eb67c461ac012cf2f71a9c01f1a91e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 16:37:36 2020 -0700 Start of refactoring commit b63c182b5f32b19dc3ca715efdbc5f18fcc02f67 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 16:32:50 2020 -0700 Todo comments commit 1e0105e Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 14:31:58 2020 -0700 revert unrelated change commit 206fd14 Merge: 0d4c2ad 8343064 Author: Timothy Sullivan <[email protected]> Date: Thu Apr 9 14:28:45 2020 -0700 Merge branch 'master' into reporting/test-better commit 0d4c2ad Author: Timothy Sullivan <[email protected]> Date: Wed Apr 8 10:41:19 2020 -0700 fix ts commit 890128c Merge: d9ce402 3598b8c Author: Timothy Sullivan <[email protected]> Date: Wed Apr 8 10:31:09 2020 -0700 Merge branch 'master' into reporting/test-better commit d9ce402 Author: Timothy Sullivan <[email protected]> Date: Tue Apr 7 08:31:58 2020 -0700 [Reporting] convert all server unit tests to TypeScript * fix imports and readmes * remove not-needed readme * remove extra info from readme * correct some comments * log the error that was caught * fix config path in readme * fix readme instructions to point to updated paths Co-authored-by: Elastic Machine <[email protected]> * revert Co-authored-by: Elastic Machine <[email protected]>
This file was moved as part of elastic#64368.
* Update/refactor some cypress documentation * Fixes some whitespace/grammar/typos * Condenses the explanation/instructions for the different modes of execution * Condense Artifacts section This is a big sprawling file; trying to cut down on the noise. * Move test-running section to top of README This is going to be what 90% of readers are looking for, methinks. * Adds Security Solution's cypress suite to x-pack testing README * Fix broken link This file was moved as part of #64368. * Remove broken link This file was deleted in #67138. * Apply suggestions from code review Co-authored-by: Devin W. Hurley <[email protected]> * Fix typo Co-authored-by: Devin W. Hurley <[email protected]>
* Update/refactor some cypress documentation * Fixes some whitespace/grammar/typos * Condenses the explanation/instructions for the different modes of execution * Condense Artifacts section This is a big sprawling file; trying to cut down on the noise. * Move test-running section to top of README This is going to be what 90% of readers are looking for, methinks. * Adds Security Solution's cypress suite to x-pack testing README * Fix broken link This file was moved as part of elastic#64368. * Remove broken link This file was deleted in elastic#67138. * Apply suggestions from code review Co-authored-by: Devin W. Hurley <[email protected]> * Fix typo Co-authored-by: Devin W. Hurley <[email protected]>
* Update/refactor some cypress documentation * Fixes some whitespace/grammar/typos * Condenses the explanation/instructions for the different modes of execution * Condense Artifacts section This is a big sprawling file; trying to cut down on the noise. * Move test-running section to top of README This is going to be what 90% of readers are looking for, methinks. * Adds Security Solution's cypress suite to x-pack testing README * Fix broken link This file was moved as part of #64368. * Remove broken link This file was deleted in #67138. * Apply suggestions from code review Co-authored-by: Devin W. Hurley <[email protected]> * Fix typo Co-authored-by: Devin W. Hurley <[email protected]> Co-authored-by: Devin W. Hurley <[email protected]>
Summary
Reporting functional tests used a custom config and location, which seems to be only because it was one of the first X-Pack features that had functional tests. This PR moves the tests for Reporting integration into the test areas of the apps that integrate with Reporting, which puts Reporting in a similar arrangement as other X-Pack services such as feature controls, preserve-url, etc.
Checklist
Delete any items that are not applicable to this PR.