Skip to content

Add support for command line tool #288

@tikkss

Description

@tikkss

GitHub: GH-286

Usage

The test directory is assumed to be test.

Run all tests:

$ test-unit test

Run specific test:

$ test-unit test/test_a.rb

Run specific test at line 10:

$ test-unit test/test_a.rb:10

Run specific tests:

$ test-unit test/test_a.rb test/test_b.rb

Run tests whose name matches a pattern:

$ test-unit test -n /collect/

I plan to make the other options follow the test-unit options.

Steps to implement

We think steps to implement:

  1. Create bin/test-unit
    • bin/test-unit just invoke ruby -r test-unit -e run_test test
  2. Add support pass arguments
    • test-unit test --verbose ... equals ruby -r test-unit -e run_test test --verbose ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions