https://github.com/nerab/twtest
Helpers for writing TaskWarrior tests in Ruby
https://github.com/nerab/twtest
taskwarrior testing
Last synced: 22 days ago
JSON representation
Helpers for writing TaskWarrior tests in Ruby
- Host: GitHub
- URL: https://github.com/nerab/twtest
- Owner: nerab
- License: mit
- Created: 2012-06-29T17:57:03.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T07:35:44.000Z (almost 5 years ago)
- Last Synced: 2023-04-14T16:44:45.968Z (almost 3 years ago)
- Topics: taskwarrior, testing
- Language: Ruby
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twtest
Helpers for writing [TaskWarrior](http://taskwarrior.org/) tests in Ruby. It isolates tests by running TaskWarrior tests in their own data directory, independent from any default data directory you may have on your workstation.
[](http://travis-ci.org/nerab/twtest)
## Installation
Add this line to your application's Gemfile:
gem 'twtest'
And then execute:
$ bundle
Or install it yourself as:
$ gem install twtest
## Usage
Have a look at the [example](/nerab/twtest/blob/master/test/unit/test_example.rb).
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
## Development
If you hack on a project and find the need to use a custom version of `twtest`, configure *your* project to prefer a local git clone over the gem:
```bash
bundle config local.twtest ../twtest
```