reduce the number of explicit tests by creating a new "edits" test runner
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript
Research direction
Start by reviewing the current explicit tests and the existing spec test runner to understand their structure and editor setup. Define the document-based cases with input document, cursor position, key sequence, and expected toMarkdown() output, then run the complete new suite before removing only redundant old tests.
Written by the indexing model from the issue text.
Description
- Create a document based on current tests that lists test cases as "the document used", "the cursor position in that document", "the sequence of keys pressed" and "the resulting document".
- Create a test runner akin to the spec test runner that loads in that document, and then runs through each specified test case by loading up the editor, setting the content, setting the cursor, running the key sequence, and then verifying that .toMarkdown() matches the given result.
- Do not consider this work done until all tests in this new document-based approach pass
- Then, only After the new tests pass, may the old tests be deleted (this may required only deleting some tests inside test files, we cannot indiscriminately delete full files).
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 1
- Avg merge
- 9h 8m
- Merged PRs (30d)
- 16
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Pomax/markdown-editor
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Pomax/markdown-editor#193 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Pomax/markdown-editor#187 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Pomax/markdown-editor#173 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Pomax/markdown-editor#149 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
Pomax/markdown-editor#192 ·
Maintainers usually reply within 1 day
All issues in Pomax/markdown-editor
Similar issues
-
enhancement good first issue shields parity
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
seuthootDev/terminal-shields#125 ·
Maintainers usually reply within 2 days
-
[ui] 自創球員 (投手): pick 球種 at creation (直球 fixed + up to 2 more), trade-off line, shown on the cardOpenarea:ui P1 status:doing
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
sunososobro-hub/cloudball#1153 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NuSkooler/enigma-bbs#1241 ·
Maintainers usually reply within 1 day
-
harness seguranca target:staging
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
corosolto/client#1507 · 1 comment ·
Maintainers usually reply within 1 day