<commit_before>require File.dirname(__FILE__) + '/../../../spec_helper'
require 'trisano/cucumber/profile_loader'

include Trisano::Cucumber

describe ProfileLoader do

  before :all do
    @default_cuke_yml = File.join(RAILS_ROOT, 'lib', 'trisano', 'cucumber', 'cucumber.yml')
  end

  it "should load profiles from anywhere we tell it to" do
    loader = ProfileLoader.new(@default_cuke_yml)
    loader.has_profile?('standard').should be_true
  end

  it "should provide access to loaded profiles" do
    loader = ProfileLoader.new(@default_cuke_yml)
    loader.profiles.map{|k,v| k }.sort.should == ['any_standard', 'enhanced', 'standard']
  end

end
<commit_msg>Add benchmark cucumber profile to profile loader spec<commit_after>require File.dirname(__FILE__) + '/../../../spec_helper'
require 'trisano/cucumber/profile_loader'

include Trisano::Cucumber

describe ProfileLoader do

  before :all do
    @default_cuke_yml = File.join(RAILS_ROOT, 'lib', 'trisano', 'cucumber', 'cucumber.yml')
  end

  it "should load profiles from anywhere we tell it to" do
    loader = ProfileLoader.new(@default_cuke_yml)
    loader.has_profile?('standard').should be_true
  end

  it "should provide access to loaded profiles" do
    loader = ProfileLoader.new(@default_cuke_yml)
    loader.profiles.map{|k,v| k }.sort.should == ['any_standard', 'benchmark', 'enhanced', 'standard']
  end

end

{'fraction_non_alphanumeric': 0.1263537906137184, 'fraction_numerical': 0.0, 'mean_word_length': 4.566265060240964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4736771', 'n_tokens_mistral': 471, 'n_tokens_neox': 446, 'n_words': 116}