Skip to content

wheels test ignores --filter and --db arguments #2489

Description

@zainforbjs

Describe the bug
The wheels test command does not appear to respect the --filter or --db flags.
Even when specifying a filter directory or a database engine, the test runner:

  • Executes all tests instead of filtered tests
  • Continues using SQLite regardless of the provided --db value

To Reproduce
Steps to reproduce the behavior:

  1. Create test suites in multiple directories:
  • models/PostSpec.cfc
  • controllers/PostsControllerSpec.cfc
  • functional/ExampleSpec.cfc
  1. Run:
wheels test --filter=models
  1. Observe that all tests execute instead of only model tests
  2. Run:
wheels test --filter=models --db=mysql
  1. Observe that:
  • all tests still execute
  • runner still reports SQLite

Actual output

Running app tests (sqlite)...
3 passed (0.02s)

This occurs even when --db=mysql is explicitly provided.

Expected behavior

--filter

The following command:

wheels test --filter=models

should only execute tests matching the models directory.
Expected example:

Running app tests (sqlite)...
models.PostSpec
1 passed

--db

The following command:

wheels test --db=mysql

should:

  • run tests against MySQL
  • report MySQL in output
  • Initialize the selected database engine appropriately
    Expected example:
Running app tests (mysql)...

Actual behavior

  • --filter is ignored
  • --db is ignored
  • All tests execute regardless of filter
  • SQLite is always used

Screenshots
Image

Image Image

Desktop

  • OS: macOS

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