Skip to content

Allow interpolating arguments data providers#402

Merged
Chemaclass merged 6 commits intomainfrom
feat/252-allow-interpolating-arguments-data-providers
May 23, 2025
Merged

Allow interpolating arguments data providers#402
Chemaclass merged 6 commits intomainfrom
feat/252-allow-interpolating-arguments-data-providers

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

@Chemaclass Chemaclass commented May 23, 2025

📚 Description

Fixes: #252

🔖 Changes

Allow interpolating these arguments in the names of the tests through some special syntax, for example ::1::, ::2::...

# data_provider fizz_numbers
function test_regular_params() {
  # "$1" "$2" ...
}

# data_provider fizz_numbers
function test_interpolating_::1::_params_::2::_example() {
  # "$1" "$2" ...
}

function fizz_numbers() {
  echo 3 4
  echo 3 6
}

Screenshot 2025-05-24 at 00 05 14

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

@Chemaclass Chemaclass self-assigned this May 23, 2025
@Chemaclass Chemaclass added the enhancement New feature or request label May 23, 2025
@Chemaclass Chemaclass merged commit 9df47c1 into main May 23, 2025
13 checks passed
@Chemaclass Chemaclass deleted the feat/252-allow-interpolating-arguments-data-providers branch May 23, 2025 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow interpolating arguments in data providers output

1 participant