Add test harness with repo-string and tool-handler tests, update CI#36
Closed
jing11223344 wants to merge 2 commits into
Closed
Add test harness with repo-string and tool-handler tests, update CI#36jing11223344 wants to merge 2 commits into
jing11223344 wants to merge 2 commits into
Conversation
Fixes hono (CVE-2024-XXXX, CVE-2024-XXXX, CVE-2024-XXXX) and ip-address (CVE-2024-XXXX) vulnerabilities via npm audit fix.
55391b1 to
a21e5b5
Compare
…e CI - Add test/repo-string.test.ts: tests for the repo-string normalizer (valid: owner/name, full URL, .git suffix; invalid: empty, non-GitHub URLs) - Add test/tool-handler.test.ts: tests for missing-required-arg validation (submit_pr, create_bounty_draft, and single-arg tool handlers) - Update tsconfig.test.json: include test/**/*.test.ts, set rootDir to '.' - Update .github/workflows/ci.yml: add test step with Node 20/22 matrix Part of bounty eliottreich#16 (test harness + CI).
a21e5b5 to
7d8edb1
Compare
Owner
|
Closing this competing submission. The TaskBounty bounty was awarded to another submission; the winning PR has been merged. Thanks for the attempt — find other open bounties at https://www.task-bounty.com/browse. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a comprehensive test harness using Node.js built-in test runner (
node:test) and updates the CI workflow to run tests on PRs.Part of bounty #16 (test harness + CI).
Changes
New test files
autopilot_enable. Covers valid inputs (owner/name, full URL, with/without .git, trailing slash) and invalid inputs (empty, non-GitHub URLs, fragments, spaces).submit_pr(4 required fields),create_bounty_draft(6 required fields), and single-arg tools (request_repo_access,fund_bounty, etc.).Config changes
test/**/*.test.tsfiles; setrootDirto.to accommodate bothsrc/andtest/directories.Verification
npm run buildpassestsc -p tsconfig.test.jsonpassesnpm test(build + compile tests + run withnode --test)Closes #16