Skip to content

test: expand E2E tests and add push/PR CI trigger - #36

Merged
konojunya merged 1 commit into
mainfrom
feat/expand-e2e-tests
Mar 24, 2026
Merged

konojunya merged 1 commit into
mainfrom
feat/expand-e2e-tests

Conversation

@konojunya

Copy link
Copy Markdown
Member

Summary

  • Expand E2E test coverage from 8 to 23 tests per plugin (92 total)
  • Add push (main) and pull_request triggers to E2E CI workflow alongside existing workflow_dispatch

Changes

  • 15 new test cases per plugin covering: insert mode variants (a, A, I, O), delete variants (x, D), change (cc), undo (u), visual mode (v, V, visual delete), replace (r), join lines (J), search (/), and line motions ($, 0)
  • CI workflow now triggers on push to main, pull requests, and manual dispatch

Test plan

  • 92 E2E tests passing locally (23.5s, 4 workers)
  • Unit tests unaffected (1256 passing)

Add 15 new test cases per plugin (60 total, 92 overall):
- Insert mode variants: a, A, I, O
- Delete variants: x, D
- Change: cc
- Undo: u
- Visual mode: v, V, visual delete
- Replace: r
- Join lines: J
- Search: /
- Line motions: $, 0

Also add push (main) and pull_request triggers to E2E CI workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report (packages/core)

main (014e107) #36 (3cdcd7c) +/-
Coverage 99.1% 99.1% 0.0%
Code to Test Ratio 1:1.6 1:1.6 0.0
Test Execution Time 4s 4s 0s
Details
  |                     | main (014e107) | #36 (3cdcd7c) | +/-  |
  |---------------------|----------------|---------------|------|
  | Coverage            |          99.1% |         99.1% | 0.0% |
  |   Files             |             18 |            18 |    0 |
  |   Lines             |           1475 |          1475 |    0 |
  |   Covered           |           1462 |          1462 |    0 |
  | Code to Test Ratio  |          1:1.6 |         1:1.6 |  0.0 |
  |   Code              |           4572 |          4572 |    0 |
  |   Test              |           7338 |          7338 |    0 |
  | Test Execution Time |             4s |            4s |   0s |

Reported by octocov

@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report (packages/react)

main (014e107) #36 (3cdcd7c) +/-
Coverage 93.8% 93.8% 0.0%
Code to Test Ratio 1:4.9 1:4.9 0.0
Test Execution Time 2s 3s +1s
Details
  |                     | main (014e107) | #36 (3cdcd7c) | +/-  |
  |---------------------|----------------|---------------|------|
  | Coverage            |          93.8% |         93.8% | 0.0% |
  |   Files             |              1 |             1 |    0 |
  |   Lines             |             81 |            81 |    0 |
  |   Covered           |             76 |            76 |    0 |
  | Code to Test Ratio  |          1:4.9 |         1:4.9 |  0.0 |
  |   Code              |            229 |           229 |    0 |
  |   Test              |           1138 |          1138 |    0 |
- | Test Execution Time |             2s |            3s |  +1s |

Reported by octocov

@konojunya
konojunya enabled auto-merge (squash) March 24, 2026 02:48
@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report (packages/plugin-textarea)

main (014e107) #36 (3cdcd7c) +/-
Coverage 97.5% 97.5% 0.0%
Code to Test Ratio 1:1.6 1:1.6 0.0
Test Execution Time 1s 1s 0s
Details
  |                     | main (014e107) | #36 (3cdcd7c) | +/-  |
  |---------------------|----------------|---------------|------|
  | Coverage            |          97.5% |         97.5% | 0.0% |
  |   Files             |              3 |             3 |    0 |
  |   Lines             |            122 |           122 |    0 |
  |   Covered           |            119 |           119 |    0 |
  | Code to Test Ratio  |          1:1.6 |         1:1.6 |  0.0 |
  |   Code              |            227 |           227 |    0 |
  |   Test              |            373 |           373 |    0 |
  | Test Execution Time |             1s |            1s |   0s |

Reported by octocov

@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report (packages/shiki-editor)

main (014e107) #36 (3cdcd7c) +/-
Coverage 34.0% 34.0% 0.0%
Code to Test Ratio 1:0.6 1:0.6 0.0
Test Execution Time 2s 3s +1s
Details
  |                     | main (014e107) | #36 (3cdcd7c) | +/-  |
  |---------------------|----------------|---------------|------|
  | Coverage            |          34.0% |         34.0% | 0.0% |
  |   Files             |              5 |             5 |    0 |
  |   Lines             |            194 |           194 |    0 |
  |   Covered           |             66 |            66 |    0 |
  | Code to Test Ratio  |          1:0.6 |         1:0.6 |  0.0 |
  |   Code              |            616 |           616 |    0 |
  |   Test              |            417 |           417 |    0 |
- | Test Execution Time |             2s |            3s |  +1s |

Reported by octocov

@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report (packages/plugin-monaco)

main (014e107) #36 (3cdcd7c) +/-
Coverage 97.1% 97.1% 0.0%
Code to Test Ratio 1:1.7 1:1.7 0.0
Test Execution Time 2s 2s 0s
Details
  |                     | main (014e107) | #36 (3cdcd7c) | +/-  |
  |---------------------|----------------|---------------|------|
  | Coverage            |          97.1% |         97.1% | 0.0% |
  |   Files             |              3 |             3 |    0 |
  |   Lines             |            106 |           106 |    0 |
  |   Covered           |            103 |           103 |    0 |
  | Code to Test Ratio  |          1:1.7 |         1:1.7 |  0.0 |
  |   Code              |            304 |           304 |    0 |
  |   Test              |            536 |           536 |    0 |
  | Test Execution Time |             2s |            2s |   0s |

Reported by octocov

@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report (packages/testkit)

main (014e107) #36 (3cdcd7c) +/-
Coverage 91.5% 91.5% 0.0%
Code to Test Ratio 1:2.7 1:2.7 0.0
Test Execution Time 1s 1s 0s
Details
  |                     | main (014e107) | #36 (3cdcd7c) | +/-  |
  |---------------------|----------------|---------------|------|
  | Coverage            |          91.5% |         91.5% | 0.0% |
  |   Files             |              2 |             2 |    0 |
  |   Lines             |             59 |            59 |    0 |
  |   Covered           |             54 |            54 |    0 |
  | Code to Test Ratio  |          1:2.7 |         1:2.7 |  0.0 |
  |   Code              |            140 |           140 |    0 |
  |   Test              |            383 |           383 |    0 |
  | Test Execution Time |             1s |            1s |   0s |

Reported by octocov

@konojunya
konojunya merged commit 75a7785 into main Mar 24, 2026
4 checks passed
@konojunya
konojunya deleted the feat/expand-e2e-tests branch March 24, 2026 02:49
@codspeed

codspeed Bot commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 22.16%

❌ 3 regressed benchmarks
✅ 68 untouched benchmarks
⏩ 12 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ x (delete char) 290.6 µs 373.4 µs -22.16%
❌ dd (delete line) 327 µs 408.4 µs -19.92%
❌ ciw (change inner word) 602.9 µs 685.9 µs -12.09%

Comparing feat/expand-e2e-tests (845abab) with main (014e107)

Open in CodSpeed

Footnotes

  1. 12 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant