SFDO-Tooling / CumulusCI

Python framework for building portable automation for Salesforce projects
http://cumulusci.readthedocs.io
BSD 3-Clause "New" or "Revised" License
363 stars 242 forks source link

Can't run test suites if project__test__name_match is defined #3784

Open yippie opened 6 months ago

yippie commented 6 months ago

Describe the bug

When using the run_tests task, having projecttestname_match defined in the cumulusci.yml file makes it impossible to run a test suite with the test_suite_names.

Please more generally allow the ability to "unset" an input variable or, for run_tests specifically, test_suite_names should OVERRIDE projecttestname_match, not throw a conflict error. The conflict error should be reserved for if both flags are explicitly set.

Reproduction steps

  1. Put a pattern in projecttestname_match in the cumulusci.yml file
  2. run cci task run run_tests --org dev --test_suite_names My_Test_Suite

EXPECTED: My_Test_Suite to run

ACTUAL: Error: Both test_suite_names and test_name_match cannot be passed simultaneously

Your CumulusCI and Python versions

CumulusCI version: 3.86.0 (/Users/kai.amundsen/.local/bin/cci) Python version: 3.10.9 (/Users/kai.amundsen/.local/pipx/venvs/cumulusci/bin/python)

Operating System

macOS 14.4

Windows environment

No response

CumulusCI installation method

pipx

Error Gist

No response

Additional information

No response