<commit_before>#!/bin/env bats

@test "Testing siteciphers tool" {
   echo siteciphers
}

@test "Check for latest version of bash-snippets on update" {
  run siteciphers update
  [ "$status" -eq 0 ]
  [ "$output" = "Bash-Snippets is already the latest version" ]
}

@test "No arguments prints usage instructions" {
  run siteciphers
  [ "$status" -eq 1 ]
  [ "${lines[0]}" = "Siteciphers" ]
}

@test "The -h option should print usage" {
  run siteciphers -h
  [ "$status" -eq 0 ]
  [ "${lines[0]}" = "Siteciphers" ]
}

@test "Running siteciphers on travis-ci" {
  run siteciphers travis-ci.org
  [ "$status" -eq 0 ]
  [ "${lines[0]}" = "ECDHE-RSA-AES256-GCM-SHA384 - NO (tlsv1 alert insufficient security)" ]
}


@test "Get the tools version with -v" {
  run siteciphers -v
  [ "$status" -eq 0 ]
  result=$( echo $(siteciphers -v) | grep -Eo "Version")
  [ "$result" = "Version" ]
}<commit_msg>Removing siteciphers test that adds ~1 min to travis build time<commit_after>#!/bin/env bats

@test "Testing siteciphers tool" {
   echo siteciphers
}

@test "Check for latest version of bash-snippets on update" {
  run siteciphers update
  [ "$status" -eq 0 ]
  [ "$output" = "Bash-Snippets is already the latest version" ]
}

@test "No arguments prints usage instructions" {
  run siteciphers
  [ "$status" -eq 1 ]
  [ "${lines[0]}" = "Siteciphers" ]
}

@test "The -h option should print usage" {
  run siteciphers -h
  [ "$status" -eq 0 ]
  [ "${lines[0]}" = "Siteciphers" ]
}

#@test "Running siteciphers on travis-ci" {
#  run siteciphers travis-ci.org
#  [ "$status" -eq 0 ]
#  [ "${lines[0]}" = "ECDHE-RSA-AES256-GCM-SHA384 - NO (tlsv1 alert insufficient security)" ]
#}


@test "Get the tools version with -v" {
  run siteciphers -v
  [ "$status" -eq 0 ]
  result=$( echo $(siteciphers -v) | grep -Eo "Version")
  [ "$result" = "Version" ]
}
{'fraction_non_alphanumeric': 0.16277807921866522, 'fraction_numerical': 0.016820401519262073, 'mean_word_length': 3.4648910411622276, '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': '5180341', 'n_tokens_mistral': 738, 'n_tokens_neox': 673, 'n_words': 206}