You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CQL is a domain specific language used for querying a Cucumber (or other Gherkin based) test suite. It is written
in Ruby and powered by the cuke_modeler gem. The goal of CQL is to increase the ease with which
useful information can be extracted from a modeled test suite and turned into summarized data or reports.
Some uses for example are:
Build systems
Reporting
Installation
Add this line to your application's Gemfile:
gem'cql'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cql
Usage
Create a new ruby file and require the gem
require 'cql'
Start querying things!
The first thing that needs to be done is to create a CQL Repository. This can be done with the following line:
Alternatively, you can activate the extensions to the cuke_modeler gem and query models directly:
require 'cql'
require 'cql/model_dsl'
directory = CukeModeler::Directory.new("/path-to/my/feature-files")
directory.query do
select name, source_line
from features
end
For more information on the query options, see the documentation here.