Project

suiteview

0.0
No release in over a year
suiteview is a tool to help show the contents of a cucumber suite with your unique specifications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.5

Runtime

~> 1.7
~> 3.0
~> 1.4.1
~> 2.4.3
 Project Readme

Quickstart

Install the gem

In your Gemfile

source "https://rubygems.org"

gem "suiteview", "~> 3.0.3"

$ bundle install

Use the gem

See a cool piechart

make_me_a_pie.rb

require 'suiteview'

SuiteView.new({ repo: repo, include_tags: '@tweets,@followers' }).total_tags_count.to_csv.render_pie_chart_html("#{__dir__}/my_pie.html").launch

my_suiteview.rb

require "suiteview"

# Instantiate the SuiteView class and give it the location of your Cucumber Suite (repo)
sv = SuiteView.new({repo: "features", include_tags: "@tweets,@followers", exclude_tag: "@wip"})

# Get a count of all Scenarios directly tagged with a particular tag
sv.percentages.to_csv.render_to_file("my.csv")

And you'll have your output

my.csv

tag,percent
@tweets,80.0
@followers,20.0

my_suiteview2.rb

require "suiteview"

# Instantiate the SuiteView class and give it the location of your Cucumber Suite (repo)
sv = SuiteView.new({repo: "features", include_tags: "@tweets,@followers", exclude_tag: "@wip"})

# Get a count of all Scenarios directly tagged with a particular tag
sv.total_tags_count.to_csv.render_to_file("my2.csv")

my2.csv

tag,count
@tweets,4
@followers,1