mirror of https://git.meli.delivery/meli/meli
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
421 B
Markdown
25 lines
421 B
Markdown
1 year ago
|
# Development
|
||
|
|
||
|
## Testing
|
||
|
|
||
|
How to run specific tests:
|
||
|
|
||
|
```sh
|
||
|
cargo test -p {melib, meli} (-- --nocapture) (--test test_name)
|
||
|
```
|
||
|
|
||
|
## Profiling
|
||
|
|
||
|
```sh
|
||
|
perf record -g target/debug/bin
|
||
|
perf script | stackcollapse-perf | rust-unmangle | flamegraph > perf.svg
|
||
|
```
|
||
|
|
||
|
## Running fuzz targets
|
||
|
|
||
|
Note: `cargo-fuzz` requires the nightly toolchain.
|
||
|
|
||
|
```sh
|
||
|
cargo +nightly fuzz run envelope_parse -- -dict=fuzz/envelope_tokens.dict
|
||
|
```
|