https://github.com/eviweb/shunit2-support
this little lib aims to help in managing shunit2 in your project
https://github.com/eviweb/shunit2-support
Last synced: about 1 month ago
JSON representation
this little lib aims to help in managing shunit2 in your project
- Host: GitHub
- URL: https://github.com/eviweb/shunit2-support
- Owner: eviweb
- License: mit
- Created: 2015-09-22T09:42:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-01T21:01:32.000Z (over 10 years ago)
- Last Synced: 2025-03-13T04:27:21.500Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 219 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Shunit2 Support
===============
this little lib aims to help in managing [shunit2](https://github.com/kward/shunit2) in your project.
##### Health status
[](https://travis-ci.org/eviweb/shunit2-support)
[](https://github.com/eviweb/shunit2-support/tags)
Installation
------------
* clone this repository `git clone --recursive https://github.com/eviweb/shunit2-support.git`
* run the installer `shunit2-support/install.sh`
_this will create a link to the `shunit2-support/src/sshunit2` command in your `$HOME/bin` directory_
> _Please note that if the `$HOME/bin` does not exist, it will be created.
> In this case you will need to refresh your environment. (ie. by running `exec bash -l`)_
**To remove the `sshunit2` command:** run the installer with the `-u` flag: `shunit2-support/install.sh -u`
Usage
-----
* `sshunit2 -p /path/to/project`: create a new project with shunit2 support enabled
* `sshunit2 -t command_name` (*): generate a unit test file for a given command
* `sshunit2 -i`: enable shunit2 support in the current directory
* `sshunit2 -c filename` (*): create a command file relatively under `./src`
* `sshunit2 -l filename` (*): create a library file relatively under `./src`
* `sshunit2 -s` (*): generate a test suite runner under `./tests`
* `sshunit2 -U file_or_dir`: update old unit test and test suite files with new version templates
* `sshunit2 -h`: display the help message
> _(*) Please note that these command calls must be run from within your project directory_
License
-------
this project is licensed under the terms of the [MIT License](/LICENSE)