mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-16 23:55:42 +02:00
Currently, to run the tests that are located in the `tests` directory (the js tests), one has to navigate to the directory and run `npm test` or `npm start`. We now have a way of automating such task execution using the binary in the `xtask` directory. This pr makes use of this by introducing a new command `cargo xtask web-tests` that can be run from anywhere in the repo to run the tests in the `tests` directory. --------- Co-authored-by: Eric Githinji <egithinji@google.com>
xtask
The purpose of the xtask binary is to enable cross platform task automation
within the project (somewhat similar to how npm run
is used in Node.js
projects to run scripts). Please see
cargo xtask for more information.
To add support for a new task, add a new arm to the match
in the
execute_task
function, and add a new handler function that contains the logic.