Add field to allow skipping of tests#105
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
|
mtojek
left a comment
There was a problem hiding this comment.
I'm not in favor of skipping tests, but we may need it in the future. I would enforce the description and link with regexp :) Something like these (all fields required):
skip:
url:
explanation:WDYT?
|
@mtojek thanks, I like this idea. It forces users to offer a short explanation for the skip and URL that has more details. 👍 |
|
@mtojek I addressed your review feedback. A few points to note:
|
|
I looked into this problem and found a workaround: https://github.com/mtojek/package-spec/tree/test-skip-fix-1 Most likely the inline content doesn't allow for jumping over remote resources or the location is not evaluated correctly. |
|
Thanks @mtojek. I merged your workaround into this PR. Now I'm seeing a different test failure, which I'm investigating: |
|
@mtojek This PR is ready for your re-review when you get a chance. Thanks! |
| @@ -0,0 +1,20 @@ | |||
| spec: | |||
There was a problem hiding this comment.
I think the config is applicable in both modes now: raw and JSON. It's described also in docs for pipeline tests.
There was a problem hiding this comment.
There appears to be a slight difference in the configs for the raw and JSON modes.
Raw:
package-spec/versions/1/data_stream/_dev/test/pipeline/spec.yml
Lines 14 to 36 in 930b447
JSON:
package-spec/versions/1/data_stream/_dev/test/pipeline/spec.yml
Lines 37 to 55 in 930b447
It looks like the raw mode supports multiline whereas the JSON mode does not.
That's why I had to end up creating two different spec files: config_raw.spec.yml and config_json.spec.yml.
There was a problem hiding this comment.
Ah, I see! In this case I think it's correct. Sorry about confusion.
* User volumes for service logs * Fixes * Bring back network connect * Address PR comments * WIP * Expose env as aliases * Fix
This PR adds a field to the pipeline and system test configuration files, allowing tests to be skipped.
Related: elastic/elastic-package#218