kubernetes Talk: Assertion - or it Didn't Happen (in Cloud Networks) - CfgMgmtCamp, Feburary 2018 Thanks to CfgMgmtCamp for having me, here are the slides for Assertion - or it Didn't Happen (in Cloud Networks). netassert is a tool to invade network namespaces and test Kubernetes Network Policy - all the code for the demos and configuration is at https://github.com/controlplaneio/netassert Talk
Clean Code What makes a clean test? What makes a clean test? Three things. Readability, readability, and readability. Readability is perhaps even more important in unit tests than it is in production code. What makes tests readable? The same thing that makes all code readable: clarity, simplicity, and density of expression. In a test you want to
Karma Google's AngularJS Style Guide Google have published their internal AngularJS Style Guide. It contains language and style rules, a basic naming convention (i.e. don't use $ as a variable prefix), test-driven recommendations (use Jasmine and Karma), a link to newly-published directory structure recommendations, a guide to scope and prototypal inheritance
Clean Code Etsy's Engineering Talks A wealth of information is tucked away in Etsy's Engineering Talks - by the people who build and run Etsy. They cover development, DevOps, security, testing, continuous deployment, configuration management, and engineering culture (among others).
Clean Code Karma Story Reporter: a plugin for readable test reports Karma is the preeminent cross-browser test framework. It is built in the style of JSTestDriver (remote browsers controlled via HTTP) but in node.js instead of Java. It also overcomes a number of JSTestDriver's fundamental issues - namely that errors in the code under test do not affect
Javascript Object Playground James Shore's fantastic (and well-recommended) Let’s Code: Test-Driven JavaScript is a screencast series designed to imbue JavaScript developers with test-driven practices. He's now released Object Playground, "a free video and visualizer for understanding object-oriented programming". The visualizer is very
Debugging Migrate Karma Config to 0.10 Karma has changed its config file format from plain ol' Javascript to RequireJS module.exports format. I've written a quick script to migrate a config file from one format to the other. It's been tested on Linux and OSX. Usage: migrateKarmaConfig.sh [options] path-to-
Backbone Slides from "Javascript Testing: Units; Backbone Models and Views" I've uploaded the slides for Javascript Testing: Units; Backbone Models and Views from PHPSW in April. The talk covers the current state of the art (including and a brief synopsis of a variety of testing frameworks), then delves into the intricacies of testing Backbone Models and Views with