Test Runner
Run tests for Proscenium.
Usage
/test— Run all Ruby and Go tests/test test/builder_test.rb— Run a specific Ruby test file/test test/builder_test.rb -n test_method_name— Run a specific Ruby test method/test test/builder_test.rb:10— Run a specific Ruby test at line number/test ./test -run TestBuild— Run specific Go tests
Steps
- Determine what to run based on arguments:
- No args: Run both Go and Ruby tests
.rbfile or Ruby-style args: Run Ruby tests- Go path/pattern: Run Go tests
- For Ruby tests, compile the Go binary first:
bundle exec rake compile:local - Run the appropriate command:
- Ruby:
bundle exec rails test <args> - Go:
go test <args>
- Ruby:
- Report results
Converted and distributed by TomeVault — claim your Tome and manage your conversions.