You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Link to Takumi in the README
Signed-off-by: Nico Burns <[email protected]>
* Update docs to use just rather than cargo
Signed-off-by: Nico Burns <[email protected]>
---------
Signed-off-by: Nico Burns <[email protected]>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,11 @@ The PR review process is completely open: help us by commenting on, testing and
14
14
15
15
If you'd like to help on a consistent basis or are interested in project management, create a Discussions post, and we'll be happy to hand out triage rights.
16
16
17
+
## The "just" task runner
18
+
19
+
Taffy uses a task runner called [just](github.com/casey/just) to run tasks. This can be installed by running `cargo install --locked just`. This is just necessary for the commands of the form `just ...` to work.
20
+
If you do you not want to install `just` then you can peak into the `justfile` in the root of this repo to see the equivalent cargo command, which will usually be of the form `cargo run -rp <package> ...`.
21
+
17
22
## Testing
18
23
19
24
### Running tests
@@ -32,7 +37,7 @@ If you are Ubuntu, you will have to install `openssl` first,
32
37
and then can follow [these instructions](https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/).
33
38
Be sure that your Chrome version matches the downloaded `chromedriver` version!
34
39
35
-
Once you have chromedriver installed and available in `PATH` you can re-generate all tests by running `cargo gentest`. You should not manually update the tests in `tests/generated`. Instead, fix the script in `scripts/gentest/` and re-generate them. This can happen after a refactor. It can be helpful to commit the updated tests in a dedicated commit so that they can be easier to ignore during review.
40
+
Once you have chromedriver installed and available in `PATH` you can re-generate all tests by running `just gentest`. You should not manually update the tests in `tests/generated`. Instead, fix the script in `scripts/gentest/` and re-generate them. This can happen after a refactor. It can be helpful to commit the updated tests in a dedicated commit so that they can be easier to ignore during review.
36
41
37
42
To add a new test case add another HTML file to `/test_fixtures` following the current tests as a template for new tests.
38
43
@@ -85,4 +90,4 @@ To add a new test case add another HTML file to `/test_fixtures` following the c
Run `cargoxbench` torunbenchmarkslocally.Torunhead-to-headbenchmarkswithYoga, run `cargoxbench--featuresyoga`.Youwillneed `libclang-dev` orthexcodecommandlinetoolsinstalledinordertoruntheyogabenchmarks.
93
+
Run `justbench` torunbenchmarkslocally.Torunhead-to-headbenchmarkswithYoga, run `justbench--featuresyoga`.Youwillneed `libclang-dev` orthexcodecommandlinetoolsinstalledinordertoruntheyogabenchmarks.
0 commit comments