Skip to content

Commit

Permalink
add trailing dashes to exercism (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavdid committed Aug 12, 2023
1 parent 41f8fcc commit b376e44
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
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

0 comments on commit b376e44

Please sign in to comment.