Skip to content

Instantly share code, notes, and snippets.

@jcreixell
jcreixell / stability_check.sh
Last active October 26, 2015 17:12
Test stability checker for RSpec
#!/usr/bin/env bash
set -e
# Default options
CONCURRENCY="${CONCURRENCY:-4}"
TEST_PATH="${TEST_PATH:-.}"
PATTERN="${PATTERN:-*_spec.rb}"
REPETITIONS="${REPETITIONS:-1}"
require 'avro'
SCHEMA = <<-JSON
{
"namespace": "com.test.avro.schemas",
"name": "MyEvent",
"type": "record",
"doc": "Some doc.",
"fields": [
{
@jcreixell
jcreixell / tutorial.md
Created June 15, 2018 08:45 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.