Skip to content

Conversation

@brainkim
Copy link
Member

Summary

  • Add libuild test command for running tests across platforms (Bun, Node.js, Chromium, Firefox, WebKit)
  • Use esbuild to bundle tests with platform-specific shims
  • Implement browser test harness with minimal expect() implementation
  • Parse TAP output for Node, Bun output for consistent result counting
  • Use Playwright for browser automation (optional peer dependency)
  • Switch CLI to commander for better argument parsing

Usage

# Run on specific platforms
libuild test -p bun -p node -p chromium

# Run on all browsers
libuild test -p chromium -p firefox -p webkit

# Debug mode (keeps browser open)
libuild test -p chromium --debug

Test plan

  • Verified 18 tests pass on Bun
  • Verified 18 tests pass on Node.js
  • Verified 18 tests pass on Chromium
  • Verified 18 tests pass on Firefox
  • Verified 18 tests pass on WebKit
  • Verified failure reporting works correctly

🤖 Generated with Claude Code

brainkim and others added 2 commits December 25, 2025 18:37
- Add test-node.ts shim (node:test + expect)
- Add test-bun.ts shim (re-export bun:test)
- Add test.ts entry with TLA platform detection
- Add bun:* to external deps
- Add expect as dependency

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add `libuild test` command for running tests across platforms
- Support Bun, Node.js, and browser platforms (Chromium, Firefox, WebKit)
- Use esbuild to bundle tests with platform-specific shims
- Implement browser test harness with minimal expect() implementation
- Parse TAP output for Node, Bun output for consistent result counting
- Use Playwright for browser automation (optional peer dependency)
- Switch CLI to commander for better argument parsing

Usage: libuild test -p bun -p node -p chromium

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

2 participants