+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

test(rome_cli): snap termination error #3186

Merged
merged 5 commits into from
Sep 9, 2022
Merged

Conversation

ematipico
Copy link
Contributor

@ematipico ematipico commented Sep 8, 2022

Summary

This PR increases the coverage of the snapshots of the CLI tests, by tracking the Termination message emitted in case of errors.

All the snapshots that result in errors are updated. While doing so, I found a bug in how we construct the error message of the rules and fixed it.

Test Plan

Manually checked that the termination messages are printed in the snapshots

@ematipico ematipico added the A-CLI Area: CLI label Sep 8, 2022
@ematipico ematipico requested a review from leops as a code owner September 8, 2022 12:32
@ematipico ematipico requested a review from a team September 8, 2022 12:32
@netlify
Copy link

netlify bot commented Sep 8, 2022

Deploy Preview for rometools canceled.

Name Link
🔨 Latest commit a2376ec
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/631b3a3479aa7c000935f537

@ematipico ematipico temporarily deployed to netlify-playground September 8, 2022 12:32 Inactive
@@ -16,4 +15,8 @@ expression: content
}
```

# Termination Message

Rome couldn't load the configuration file, here's why:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was repeated twice. The introduction of ConfigurationError:UnknownRule fixed the issue.

@ematipico ematipico force-pushed the test/track-termination-result branch from 19c0063 to 3b1e903 Compare September 8, 2022 12:35
@ematipico ematipico temporarily deployed to netlify-playground September 8, 2022 12:35 Inactive
@github-actions
Copy link

github-actions bot commented Sep 8, 2022

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

Parser conformance results on ubuntu-latest

js/262

Test result main count This PR count Difference
Total 45879 45879 0
Passed 44939 44939 0
Failed 940 940 0
Panics 0 0 0
Coverage 97.95% 97.95% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 39 39 0
Passed 36 36 0
Failed 3 3 0
Panics 0 0 0
Coverage 92.31% 92.31% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 5946 5946 0
Passed 1621 1621 0
Failed 4325 4325 0
Panics 0 0 0
Coverage 27.26% 27.26% 0.00%

ts/babel

Test result main count This PR count Difference
Total 588 588 0
Passed 519 519 0
Failed 69 69 0
Panics 0 0 0
Coverage 88.27% 88.27% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 16257 16257 0
Passed 12397 12397 0
Failed 3860 3860 0
Panics 0 0 0
Coverage 76.26% 76.26% 0.00%

@ematipico ematipico temporarily deployed to netlify-playground September 8, 2022 13:57 Inactive
}

impl CliSnapshot {
pub fn form_result(result: Result<(), Termination>) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a typo:

Suggested change
pub fn form_result(result: Result<(), Termination>) -> Self {
pub fn from_result(result: Result<(), Termination>) -> Self {

@ematipico ematipico force-pushed the test/track-termination-result branch from c1aaef2 to d6b1ed7 Compare September 9, 2022 10:49
@ematipico ematipico temporarily deployed to netlify-playground September 9, 2022 10:49 Inactive
@ematipico ematipico force-pushed the test/track-termination-result branch from d6b1ed7 to a2376ec Compare September 9, 2022 13:05
@ematipico ematipico temporarily deployed to netlify-playground September 9, 2022 13:05 Inactive
@ematipico ematipico merged commit 834308d into main Sep 9, 2022
@ematipico ematipico deleted the test/track-termination-result branch September 9, 2022 13:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-CLI Area: CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载