Skip to content

Instantly share code, notes, and snippets.

View GBeauny's full-sized avatar

Geoffrey Beauny GBeauny

  • France
View GitHub Profile
@GBeauny
GBeauny / main.go
Created January 8, 2018 13:17 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@GBeauny
GBeauny / assertions-compareScreenshot.js
Created November 2, 2015 12:35 — forked from richard-flosi/assertions-compareScreenshot.js
Nightwatch with Visual Regression testing
// assertions/compareScreenshot.js
var resemble = require('resemble'),
fs = require('fs');
exports.assertion = function(filename, expected) {
var screenshotPath = 'test/screenshots/',
baselinePath = screenshotPath + 'baseline/' + filename,
resultPath = screenshotPath + 'results/' + filename,
diffPath = screenshotPath + 'diffs/' + filename;