Skip to content

test: Add additional tests#324

Merged
AndrewSouthpaw merged 3 commits intothlorenz:masterfrom
thompson-tomo:additional_tests
Mar 10, 2026
Merged

test: Add additional tests#324
AndrewSouthpaw merged 3 commits intothlorenz:masterfrom
thompson-tomo:additional_tests

Conversation

@thompson-tomo
Copy link
Contributor

Introduce additional tests to increase coverage

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds and adjusts TAP tests to improve CLI coverage for doctoc.js, and updates TAP coverage thresholds accordingly.

Changes:

  • Add new dry-run CLI tests covering unknown options, invalid --syntax values, and --help.
  • Expand a couple of existing CLI invocations to include additional flags (--update-only, --all) for broader exercised code paths.
  • Increase TAP coverage thresholds for branches and functions in .taprc.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
test/transform-dryrun.js Adds new CLI/exit-code tests and tweaks existing commands to hit more option combinations.
.taprc Raises coverage thresholds for branches/functions to reflect improved test coverage goals.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

thompson-tomo and others added 2 commits March 11, 2026 02:45
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@AndrewSouthpaw AndrewSouthpaw merged commit 720375c into thlorenz:master Mar 10, 2026
5 checks passed
@thompson-tomo thompson-tomo deleted the additional_tests branch March 10, 2026 23:53
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