diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-06 06:18:58 +0000 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-06 06:18:58 +0000 |
| commit | aacf6dd9ebdb4d55b432ea1d4213093fe35e0ad1 (patch) | |
| tree | 25926b10c10bc36133cfd1a337190dd003088e2e /makefile | |
| parent | 1f83d504bc344ffd3c8b4120b3865fd6c11a9e2d (diff) | |
| download | yuescript-aacf6dd9ebdb4d55b432ea1d4213093fe35e0ad1.tar.gz yuescript-aacf6dd9ebdb4d55b432ea1d4213093fe35e0ad1.tar.bz2 yuescript-aacf6dd9ebdb4d55b432ea1d4213093fe35e0ad1.zip | |
test: add comprehensive CLI test suite
Add 56 test cases across 4 test suites to verify the yue command line
tool functionality:
- Basic options test: -h, --help, -v, --version flags
- Compilation test: file/directory compilation with various options
- Error handling test: syntax errors, file not found, edge cases
- Execution test: -e option, script arguments, macros
The test framework includes helper functions for assertions and test
environment setup. All tests can be run via `bash spec/cli/run_all_tests.sh`.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -447,6 +447,12 @@ test: debug | |||
| 447 | @busted | 447 | @busted |
| 448 | @echo "Done!" | 448 | @echo "Done!" |
| 449 | 449 | ||
| 450 | # Test CLI tool functionality | ||
| 451 | .PHONY: test-cli | ||
| 452 | test-cli: debug | ||
| 453 | @echo "Running CLI tests..." | ||
| 454 | @bash spec/cli/run_all_tests.sh | ||
| 455 | |||
| 450 | # Test Yuescript compiler | 456 | # Test Yuescript compiler |
| 451 | .PHONY: gen | 457 | .PHONY: gen |
| 452 | gen: release | 458 | gen: release |
