From aacf6dd9ebdb4d55b432ea1d4213093fe35e0ad1 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 6 Feb 2026 06:18:58 +0000 Subject: 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 --- makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'makefile') diff --git a/makefile b/makefile index 33d02cf..83f9c5d 100644 --- a/makefile +++ b/makefile @@ -447,6 +447,12 @@ test: debug @busted @echo "Done!" +# Test CLI tool functionality +.PHONY: test-cli +test-cli: debug + @echo "Running CLI tests..." + @bash spec/cli/run_all_tests.sh + # Test Yuescript compiler .PHONY: gen gen: release -- cgit v1.2.3-55-g6feb