Skip to content
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

Added MCDC Report feature #243

Merged
merged 84 commits into from
Dec 20, 2024
Merged

Added MCDC Report feature #243

merged 84 commits into from
Dec 20, 2024

Conversation

Den1552
Copy link
Contributor

@Den1552 Den1552 commented Nov 22, 2024

Summary

Added an MC/DC report feature that allows the user to generate a report for a specific line. The report opens in a separate WebviewPanel, similar to the test generation report. Lines that are interactable are visually highlighted in the editor.

Usage

  1. Ensure that Statement+MCDC is selected under Settings → VectorCAST Test Explorer → Build → Coverage Kind. If this setting is not selected, the coverage gutter will display the standard coverage icons and will not be interactable.

  2. To generate a report, right-click on the coverage icon and choose Get MCDC Report. The report will open in a separate WebviewPanel.

  3. In Settings → VectorCAST Test Explorer → MCDC Coverage Gutter Icons, you can choose to display either an arrow or an M as the icon in the coverage gutter.

TODOs

  • Write a server-side implementation for retrieving the MCDC lines for the coverage icons, if necessary
  • Refactoring

Copy link

github-actions bot commented Nov 25, 2024

Unit Test results - Vcast 2021sp0

 1 files  ±0   8 suites  ±0   13s ⏱️ ±0s
57 tests ±0  57 ✅ ±0  0 💤 ±0  0 ❌ ±0 
58 runs  ±0  58 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

Unit Test results - Vcast 2023sp0

 1 files  ±0   8 suites  ±0   13s ⏱️ ±0s
57 tests ±0  57 ✅ ±0  0 💤 ±0  0 ❌ ±0 
58 runs  ±0  58 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

Unit Test results - Vcast 2024sp5

 1 files  ±0   9 suites  ±0   14s ⏱️ -1s
65 tests ±0  65 ✅ ±0  0 💤 ±0  0 ❌ ±0 
66 runs  ±0  66 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

Unit Test results - Vcast 2024sp4

 1 files  ±0   9 suites  ±0   14s ⏱️ ±0s
65 tests ±0  65 ✅ ±0  0 💤 ±0  0 ❌ ±0 
66 runs  ±0  66 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.23%. Comparing base (4fe9f6b) to head (9659af3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #243      +/-   ##
==========================================
+ Coverage   94.20%   94.23%   +0.02%     
==========================================
  Files           9        9              
  Lines        1450     1457       +7     
  Branches      157      157              
==========================================
+ Hits         1366     1373       +7     
  Misses         84       84              
Flag Coverage Δ
Unit 94.23% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2023sp0 - Group build_different_envs

5 tests  ±0   5 ✅ ±0   35s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2021sp0 - Group build_different_envs

5 tests  ±0   5 ✅ ±0   35s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2024sp4 - Group build_different_envs_server

5 tests  ±0   5 ✅ ±0   32s ⏱️ -1s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2024sp4 - Group build_different_envs

5 tests  ±0   5 ✅ ±0   32s ⏱️ -2s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2021sp0 - Group flask_icon

9 tests  ±0   9 ✅ ±0   2m 6s ⏱️ -1s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2023sp0 - Group flask_icon

9 tests  ±0   9 ✅ ±0   2m 4s ⏱️ +2s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2021sp0 - Group build_env_failure

 2 files  ±0   2 suites  ±0   2m 42s ⏱️ +3s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
10 runs  ±0  10 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2021sp0 - Group func_basis

2 files  ±0  2 suites  ±0   2m 45s ⏱️ -1s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2023sp0 - Group build_env_failure

 2 files  ±0   2 suites  ±0   2m 40s ⏱️ -1s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
10 runs  ±0  10 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2023sp0 - Group func_basis

2 files  ±0  2 suites  ±0   2m 36s ⏱️ -10s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2024sp4 - Group build_env_failure_server

 2 files  ±0   2 suites  ±0   2m 34s ⏱️ ±0s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
10 runs  ±0  10 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 25, 2024

E2e Test results - Vcast 2024sp4 - Group build_env_failure

 2 files  ±0   2 suites  ±0   2m 35s ⏱️ +2s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
10 runs  ±0  10 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9659af3. ± Comparison against base commit 4fe9f6b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group coverage

2 files  2 suites   1m 26s ⏱️
7 tests 7 ✅ 0 💤 0 ❌
9 runs  9 ✅ 0 💤 0 ❌

Results for commit 9659af3.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group coverage

2 files  2 suites   1m 24s ⏱️
7 tests 7 ✅ 0 💤 0 ❌
9 runs  9 ✅ 0 💤 0 ❌

Results for commit 9659af3.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp4 - Group coverage

2 files  2 suites   1m 19s ⏱️
7 tests 7 ✅ 0 💤 0 ❌
9 runs  9 ✅ 0 💤 0 ❌

Results for commit 9659af3.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp4 - Group coverage_server

2 files  2 suites   1m 16s ⏱️
7 tests 7 ✅ 0 💤 0 ❌
9 runs  9 ✅ 0 💤 0 ❌

Results for commit 9659af3.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group coverage

2 files  2 suites   1m 16s ⏱️
7 tests 7 ✅ 0 💤 0 ❌
9 runs  9 ✅ 0 💤 0 ❌

Results for commit 9659af3.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group coverage_server

2 files  2 suites   1m 16s ⏱️
7 tests 7 ✅ 0 💤 0 ❌
9 runs  9 ✅ 0 💤 0 ❌

Results for commit 9659af3.

♻️ This comment has been updated with latest results.

@Den1552 Den1552 self-assigned this Dec 18, 2024
src/coverage.ts Outdated Show resolved Hide resolved
src/coverage.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@Zbigor Zbigor left a comment

Choose a reason for hiding this comment

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

Went through all the changes, everything looks good. I haven't seen anything weird, the main comment is about the suggested refactor for clarity regarding all those nested if conditions.

@Zbigor Zbigor merged commit cacd52b into main Dec 20, 2024
172 checks passed
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