diff --git a/site/src/cargo_maelstrom.md b/site/src/cargo_maelstrom.md index 1beb30af..98ddbeb0 100644 --- a/site/src/cargo_maelstrom.md +++ b/site/src/cargo_maelstrom.md @@ -4,8 +4,9 @@ cargo-maelstrom is a replacement for `cargo test` which will run tests as jobs o distributed clustered job runner. Each test runs in a lightweight container where it is isolated from computer it is running on and other tests. -Running your tests using it can be as simple as running `cargo metest` instead -of `cargo test`, (see [Running Tests](./cargo_maelstrom/running_tests.md) for -details) but due to the tests running in a very isolated environment by default, -there can be some configuration required to make all your tests pass (see +Running your tests using it can be as simple as running `cargo maelstrom run` +instead of `cargo test`, (see [Running +Tests](./cargo_maelstrom/running_tests.md) for details) but due to the tests +running in a very isolated environment by default, there can be some +configuration required to make all your tests pass (see [Configuration](./cargo_maelstrom/configuration.md).) diff --git a/site/src/cargo_maelstrom/include_and_exclude_flags.md b/site/src/cargo_maelstrom/include_and_exclude_flags.md index cb1e6471..4ce806f1 100644 --- a/site/src/cargo_maelstrom/include_and_exclude_flags.md +++ b/site/src/cargo_maelstrom/include_and_exclude_flags.md @@ -21,7 +21,7 @@ packages. This can be a useful tip to remember when trying to run a single test. If we were to run something like ```bash -cargo metest -i "name.equals(foobar)" +cargo maelstrom run -i "name.equals(foobar)" ``` `cargo-maelstrom` would run any test which has the name "foobar". A test with this @@ -30,7 +30,7 @@ build all of them. But if I happened to know that only one package has this test, the `baz` package, I would be better off running the following instead. ```bash -cargo metest -i "package.equals(baz) && name.equals(foobar)" +cargo maelstrom run -i "package.equals(baz) && name.equals(foobar)" ``` Now since I specified that I only care about the "baz" package, `cargo-maelstrom` diff --git a/site/src/cargo_maelstrom/running_tests.md b/site/src/cargo_maelstrom/running_tests.md index 3480b7d1..ab3e8e2f 100644 --- a/site/src/cargo_maelstrom/running_tests.md +++ b/site/src/cargo_maelstrom/running_tests.md @@ -21,7 +21,8 @@ Replace `` with the hostname or IP of the machine the broker is running on. Replace `` with the port you provided to the broker via the `--port` CLI option. (In the book we chose port 9001 for this) -Now we should be able to build and run tests just by running `cargo metest` +Now we should be able to build and run tests just by running `cargo maelstrom +run` With no arguments it attempt to run all the tests in your project. diff --git a/site/src/cargo_maelstrom/test_pattern_dsl.md b/site/src/cargo_maelstrom/test_pattern_dsl.md index 7b8e3e2a..59057a66 100644 --- a/site/src/cargo_maelstrom/test_pattern_dsl.md +++ b/site/src/cargo_maelstrom/test_pattern_dsl.md @@ -109,8 +109,8 @@ These other expressions are useful occasionally - **`true`, `all`, `any`**: selects all tests - **`false`, `none`**: selects no tests -When you provide no filter to `cargo-maelstrom` it acts as if typed `cargo metest --i all` +When you provide no filter to `cargo-maelstrom` it acts as if you typed `cargo +maelstrom run -i all` ## Abbreviations diff --git a/site/src/install/cargo_maelstrom.md b/site/src/install/cargo_maelstrom.md index 22bc7114..7a8731a5 100644 --- a/site/src/install/cargo_maelstrom.md +++ b/site/src/install/cargo_maelstrom.md @@ -11,4 +11,4 @@ export GITHUB_URL="https://github.com/maelstrom-software/maelstrom.git" cargo install --git $GITHUB_URL cargo-maelstrom ``` -You should now be able to invoke it by running `cargo metest` +You should now be able to invoke it by running `cargo maelstrom run`