@josephnguyent/codeceptjs-cli
v0.1.3
Published
Next-generation production-grade CLI for the CodeceptJS testing framework
Maintainers
Readme
@josephnguyent/codeceptjs-cli
Next-generation, production-grade CLI wrapper for the CodeceptJS testing framework.
Features
- 🚀 Interactive project scaffolding — Beautiful TUI wizard powered by
@clack/prompts - ⚡ Enhanced test execution — Colorized output, config auto-discovery, adaptive parallelism
- 🩺 Environment health check —
ccjs doctorvalidates Node, CodeceptJS, browsers & config - 📦 Code generators — Scaffold tests, page objects, and helpers with interactive prompts
- 🎭 Playwright-first — Native browser installation management
- 🔌 Plugin-extensible — Built on Oclif v4 with first-class plugin support
- 🔒 Security-ready — CodeQL analysis included in CI pipeline
Documentation
📚 Visit the official Documentation Site for comprehensive guides, tutorials, and full API command references.
Quick Start
# Install globally
npm install -g @josephnguyent/codeceptjs-cli
# Initialize a new project
ccjs init
# Run tests
ccjs runAvailable Commands
| Command | Description |
| ------------------ | ---------------------------------- |
| ccjs init | Interactive project setup |
| ccjs doctor | Validate environment health |
| ccjs run | Execute tests |
| ccjs run workers | Run tests in parallel |
| ccjs run rerun | Flaky test detection |
| ccjs dry-run | Preview tests without executing |
| ccjs generate | Scaffold tests, page objects, etc. |
See the Full Command Reference for detailed usage.
Architecture
User types: ccjs run --steps
│
▼
┌─────────────────────┐
│ Oclif v4 Parser │ ← Parses commands, flags, args
│ (CLI Framework) │
└────────┬────────────┘
▼
┌─────────────────────┐
│ Hooks (init) │ ← Pre-flight: show version, validate env
└────────┬────────────┘
▼
┌─────────────────────┐
│ Command Handler │ ← e.g., src/commands/run/index.ts
│ (run, init, doctor)│
└────────┬────────────┘
▼
┌─────────────────────┐
│ Shared Libs │ ← Config discovery, logger, errors, templates
│ + Integrations │ ← Playwright browser manager, CodeceptJS API
└────────┬────────────┘
▼
┌─────────────────────┐
│ CodeceptJS │ ← Actually runs the tests via execa
└─────────────────────┘Acknowledgements
This project is built on top of the incredible CodeceptJS testing framework. All credit for the core testing engine, helpers, and plugin ecosystem belongs to the CodeceptJS team.
@josephnguyent/codeceptjs-cli is a community-driven open-source tool — it is not officially affiliated with or endorsed by the CodeceptJS project. We simply love CodeceptJS and want to make the developer experience even better.
Contributing
This project is free and open source under the MIT License — everyone is welcome to use, share, and contribute!
We'd love your help, whether it's:
- 🐛 Reporting bugs via Issues
- 💡 Suggesting features or improvements
- 📖 Improving documentation
- 🔧 Submitting pull requests
See the Contributing Guide for details on how to get started.
License
MIT — see LICENSE for details.
