<commit_before>var soda = require('soda')
,   assert = require('assert')
,   nano = require('nano');

var browser = soda.createSauceClient({
  'url': 'http://saucelabs.com/'
, 'username': 'pouchdb'
, 'access-key': '<KEY>'
, 'os': 'Mac 10.6'
, 'browser': 'googlechrome'
, 'browser-version': ''
, 'name': 'Pouch-Chrome/Win2003'
});

browser.on('command', function(cmd, args){
  console.log(' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', '));
});

var url = 'http://127.0.0.1:8000/tests/test.html';
if(process.argv[2]) {
    git_hash = process.argv[2];
    url += '#' + git_hash;
}


browser
  .chain
  .session()
  .open(url)
  .setTimeout(800000)
  .waitForTextPresent('Tests completed in')
  .end(function(err){
    this.queue = null;
    var sauce = {
        jobUrl : this.jobUrl,
        videoUrl : this.videoUrl,
        logUrl : this.logUrl
    }
    var couch = nano('http://127.0.0.1:5984');
    var db = couch.db.use('test_suite_db1');
    db.list({include_docs: true}, function(err, res){
        if (err) return console.log('err: ' + err);
        console.log(res);<commit_msg>Move to ff on vista for now until we get more mac minutes on suacelabs, and until we get the browser security dialogs sorted.<commit_after>var soda = require('soda')
,   assert = require('assert')
,   nano = require('nano');

var browser = soda.createSauceClient({
  'url': 'http://saucelabs.com/'
, 'username': 'pouchdb'
, 'access-key': '<KEY>'
, 'os': 'Windows 2008'
, 'browser': 'firefox'
, 'browser-version': '15'
, 'name': 'Pouch-Firefox/Vista'
});

browser.on('command', function(cmd, args){
  console.log(' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', '));
});

var url = 'http://12172.16.17.32:8000/tests/test.html';
if(process.argv[2]) {
    git_hash = process.argv[2];
    url += '#' + git_hash;
}


browser
  .chain
  .session()
  .open(url)
  .setTimeout(800000)
  .waitForTextPresent('Tests completed in')
  .end(function(err){
    this.queue = null;
    var sauce = {
        jobUrl : this.jobUrl,
        videoUrl : this.videoUrl,
        logUrl : this.logUrl
    }
    var couch = nano('http://127.0.0.1:5984');
    var db = couch.db.use('test_suite_db1');
    db.list({include_docs: true}, function(err, res){
        if (err) return console.log('err: ' + err);
        console.log(res);
{'fraction_non_alphanumeric': 0.19824945295404814, 'fraction_numerical': 0.037636761487964986, 'mean_word_length': 3.3625954198473282, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4517021', 'n_tokens_mistral': 911, 'n_tokens_neox': 859, 'n_words': 173}