To run the unit tests, run:
$ cargo test -- --test-threads=1
To run the integration test, run:
$ ./integration_test.sh
$ cargo build
$ cargo build --release # to build optimized binary
$ cargo install --path .
The integration tests provide an example on how to use the application. After you have a repo with your dotfiles already saved, just run
$ dot init <repo>
and Dot will take care of the rest!
-
dot status
should show the git status of the dotfiles dir -
dot log
should show the git log of the dotfiles dir -
dot show
should show the path of the dotfiles dir -
dot add
should add a move a file to the dotfiles dir and symlink the file - Run clippy to lint the project and fix issues