Thanks to visit codestin.com
Credit goes to github.com

Skip to content

suiteview/suiteview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •