Skip to content

Commit

Permalink
add a starter toolkit to run the tests (#47)
Browse files Browse the repository at this point in the history
this PR adds a very simple `toolkit.nu` to run the tests of
`nu-git-manager` without worrying about `use nupm` and the exact
commands to run:
```nushell
use toolkit.nu  # i use a hook for that
toolkit test
```
  • Loading branch information
amtoine authored Oct 30, 2023
1 parent f9464f3 commit ce0f9c3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions toolkit.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# run the tests of the `nu-git-manager` package
#
# > **Important**
# > the `toolkit test` command requires [Nupm](https://github.com/nushell/nupm) to be installed
export def "test" [
--verbose # show the output of each tests
] {
use nupm

if $verbose {
nupm test --show-stdout
} else {
nupm test
}
}

0 comments on commit ce0f9c3

Please sign in to comment.