Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add trailing dashes to exercism #6

Merged
merged 1 commit into from
Aug 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This project uses [SemVer](https://semver.org/) for versioning. Its public APIs, runtime support, and documented file locations won't change incompatibly outside of major versions (once version 1.0.0 has been released). There may be breaking changes in minor releases before 1.0.0 and will be noted in these release notes.

## 0.5.1

_released `2023-08-11`_

- include `--` after the `exercism test` command, so args are correctly passed through to the underlying test command (e.g. `t --include pending` runs `exercism test -- --include-pending`) ([#6](https://github.com/xavdid/universal-test-runner/pull/6))

## 0.5.0

_released `2023-08-03`_
Expand Down
6 changes: 3 additions & 3 deletions tests/test_matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_export():
(matchers.yarn, ["yarn", "test"]),
(matchers.pnpm, ["pnpm", "test"]),
(matchers.justfile, ["just", "test"]),
(matchers.exercism, ["exercism", "test"]),
(matchers.exercism, ["exercism", "test", "--"]),
]


Expand Down Expand Up @@ -277,7 +277,7 @@ def __repr__(self) -> str:
file_contents=[("Makefile", "test:\n cool")],
),
CommandFinderTestCase([".pytest_cache", "manage.py"], "./manage.py test"),
CommandFinderTestCase([".exercism", "Makefile"], "exercism test"),
CommandFinderTestCase([".exercism", "Makefile"], "exercism test --"),
],
ids=repr,
)
Expand Down Expand Up @@ -326,7 +326,7 @@ def test_find_test_command(
"xtest",
),
(CommandFinderTestCase([".exercism", "justfile"], "just test"), "test"),
(CommandFinderTestCase([".exercism", "justfile"], "exercism test"), "xtest"),
(CommandFinderTestCase([".exercism", "justfile"], "exercism test --"), "xtest"),
],
)
@patch("subprocess.run")
Expand Down
2 changes: 1 addition & 1 deletion universal_test_runner/matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _matches_justfile(c: Context) -> bool:
elixir = Matcher.basic_builder("elixir", "mix.exs", "mix test")
rust = Matcher.basic_builder("rust", "Cargo.toml", "cargo test")
clojure = Matcher.basic_builder("clojure", "project.clj", "lein test")
exercism = Matcher.basic_builder("exercism", ".exercism", "exercism test")
exercism = Matcher.basic_builder("exercism", ".exercism", "exercism test --")

# these are checked in order
ALL_MATCHERS: list[Matcher] = [
Expand Down