Skip to content

Instantly share code, notes, and snippets.

View kheremos's full-sized avatar

kheremos

  • Oregon, United States
View GitHub Profile
@kheremos
kheremos / edmunds.tests.js
Last active October 30, 2015 16:14
A first-pass of API testing against Edmunds. With a toggle that can switch between fixtures or external API calls. The edmundsService should not be in-line when the tests near completion, but serve to help during development and provide better context for this gist.
/** Created by: greg.a.galloway@gmail.com Oct 2015
* Issue: TSL-105
*
* This file should demonstrate desired functionality for
* leveraging the Edmund's API. If configuration is
* required, check the issue link above.
*/
'use strict';
var sinon = require('sinon');
@kheremos
kheremos / d3.js Geodesic Rainbow.markdown
Last active September 11, 2015 21:02
d3.js Geodesic Rainbow
@kheremos
kheremos / d3.js Geodesic Rainbow.markdown
Created September 10, 2015 20:47
d3.js Geodesic Rainbow
@kheremos
kheremos / jacoco uncovered class reporting
Created October 3, 2014 17:48
Gradle task to parse a Jacoco report and list the classes where INSTRUCTION_COVERED = 0.
task printNakedClasses (dependsOn: test)<< {
ext.TEST_FILE_NAME = "$buildDir/reports/jacoco/test/jacocoTestReport.csv"
//load and split the file
ext.inputFile = file(ext.TEST_FILE_NAME)
String[] lines = inputFile.text.split('\n')
List<String[]> rows = lines.collect {it.split(',')}
def classesUncovered = rows.findAll { row ->
row[4]=="0"
}