Tools for inspecting and querying a FitNesse test hierarchy. This Ruby gem allows you to create an enumerable structure that represents an entire test hierarchy, and then inspect that structure. For example, let's say that your organization makes heavy use of tags in FitNesse, and you would like to find all the tests that are not included by a particular tag. That could be done like this:
fitnesse = FitnesseRoot.new("C:/gitrepos/centralrepobare/FitTest/FitNesseRoot")
untagged = fitnesse.find_all {|node|
node.runable? && node.test? && !node.has_tag?('Nightly')
}
puts untagged
Add this line to your application's Gemfile:
gem 'fitquery'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fitquery
- Fork it ( https://github.com/[my-github-username]/fitquery/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request