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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*[Manually testing from the git repo](#manually-testing-from-the-git-repo)
*[Profiling](#profiling)
*[With tracing](#with-tracing)
*[With cargo-flamegraph](#with-cargo-flamegraph)
Expand All
@@ -26,7 +28,7 @@ To release a new version:
* Run `cargo publish` to publish the code to `crates.io`.
*[Create a Github release](https://github.com/arxanas/git-branchless/releases/new) for the version tag. Leave the release title empty to automatically use the tag name as the release title. Copy and paste the changelog contents for this version into the release notes.
## Testing
## Unit Testing
### Running tests locally
Expand DownExpand Up
@@ -75,6 +77,30 @@ If you're encountering strange test failures that only appear in CI, try adding
uses: mxschmitt/action-tmate@v3
```
## Manual Testing
### Manually testing from the git repo
In order to test a build right from the git repo, e.g. `master` or a pull request, you can either build and install the binary "globally", or you can just build the binary and then run it without installing it. (At least, that's what I've been doing as I've been hacking around.)
```
# clone; checkout what you want to test;
# e.g. git clone https://github.com/arxanas/git-branchless.git && cd git-branchless & gh pr checkout 326