Skip to content

test(openclaw-plugin): add comprehensive UT suite under tests/ut/ (27…#1144

Merged
qin-ctx merged 1 commit intovolcengine:mainfrom
huangxun375-stack:main
Apr 1, 2026
Merged

test(openclaw-plugin): add comprehensive UT suite under tests/ut/ (27…#1144
qin-ctx merged 1 commit intovolcengine:mainfrom
huangxun375-stack:main

Conversation

@huangxun375-stack
Copy link
Copy Markdown
Contributor

@huangxun375-stack huangxun375-stack commented Apr 1, 2026

…5 tests)

Description

Add a comprehensive unit test suite for the openclaw-plugin module, covering 8 of 9 source modules with 13 new test files and 275 test cases. and e2e test under tests/ut/e2e.

Related Issue

N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

All source files (config.ts, index.ts, etc.) remain unchanged from origin/main
Tests use vitest with globals: true and environment: node
Pure functions are tested directly; context-engine and tool registration use vi.fn() mocks

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

Failed to generate code suggestions for PR

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Eurekaxun seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@qin-ctx qin-ctx merged commit 908f727 into volcengine:main Apr 1, 2026
9 of 10 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants