Skip to content

Instantly share code, notes, and snippets.

@jordanorelli
jordanorelli / integration.md
Created Apr 27, 2021
on integration testing
View integration.md

when people say "integration testing", the feeling I get is that the definition that most people are using is "unit tests that happen to perform i/o". is this the definition that most people are using?

there's another definition, which is the definition I learned when I first learned about unit testing, which I have never seen anyone actually use: a unit test is an individual unit of testing, and "integration testing" is when you sequence the unit tests to create an integrated suite of tests. that is ... integration testing is when you integrate your unit tests, not when you test how your system integrates with another system. Those are distinct concepts! My suggestion here is not that the latter concept isn't valuable, it is valuable, it's just distinct, and rarely do I see the first concept being executed well.

For example, let's say you were testing some CRUD API and you wanted to test two things: the create and the update. The strategy that I most commonly witness is as follows:

  • create a unit t
View belt.mel
select -cl;
select -add AZRI:CTL_L_BeltSide1;
select -add AZRI:CTL_L_BeltFront1;
select -add AZRI:CTL_R_BeltFront1;
select -add AZRI:CTL_L_BeltBack1;
select -add AZRI:CTL_R_BeltBack1;
select -add AZRI:CTL_R_PouchBack1;
select -add AZRI:CTL_R_PouchFront1;
select -add AZRI:CTL_R_BeltSide1;
View gist:72e828704310c87d2ec80ec6e6ca02c0
send_request_one()
response_two = send_request_two()
response_three = send_request_three()
send_request_four()
await response_two
await response_three
send_request_five()
@jordanorelli
jordanorelli / box.zig
Last active Dec 24, 2020
undefined values
View box.zig
const std = @import("std");
const stdout = std.io.getStdOut().writer();
fn Box(comptime T: type) type {
return struct {
value: T,
};
}
const Point = struct {
View gist:5204d92d746b51c312cb9f04ed15add3
vagrant@vagrant[0] ~: cat pwd.zig
const std = @import("std");
const os = std.os;
const print = std.debug.print;
pub fn main() !void {
// I think this is entirely on the stack?
var buf: [4096]u8 = undefined;
// use that fixed array we put on the stack as
View tracer.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TracerDot : MonoBehaviour {
private float spawned;
void Start() {
spawned = Time.time;
}
View game.txt
{"gameLink":"www.flickgame.org","canvasses":[[61,"0",44,"f",115,"0",22,"f",1,"6",22,"f",115,"0",21,"f",2,"6",5,"f",1,"6",7,"f",3,"6",6,"f",115,"0",9,"f",5,"5",6,"f",4,"6",4,"f",1,"6",7,"f",1,"6",1,"f",1,"6",2,"f",3,"6",1,"f",115,"0",7,"f",3,"5",3,"b",2,"5",4,"f",3,"6",6,"f",1,"6",6,"f",1,"6",2,"f",1,"6",2,"f",1,"6",1,"f",1,"6",1,"f",115,"0",6,"f",3,"5",5,"b",1,"5",4,"f",1,"6",1,"f",1,"6",6,"f",1,"6",6,"f",2,"6",1,"f",1,"6",2,"f",1,"6",1,"f",1,"6",1,"f",115,"0",5,"f",2,"5",7,"b",1,"5",4,"f",3,"6",6,"f",1,"6",7,"f",3,"6",2,"f",3,"6",1,"f",115,"0",5,"f",1,"5",2,"b",3,"4",3,"b",1,"5",6,"f",3,"6",4,"f",1,"6",9,"f",1,"6",4,"f",1,"6",1,"f",115,"0",5,"f",1,"5",2,"b",3,"4",3,"b",1,"5",6,"f",1,"6",1,"f",2,"6",3,"f",1,"6",9,"f",1,"6",4,"f",1,"6",1,"f",115,"0",4,"f",2,"5",2,"b",2,"4",3,"b",2,"5",6,"f",1,"6",2,"f",1,"6",3,"f",1,"6",2,"f",2,"6",5,"f",1,"6",4,"f",1,"6",1,"f",115,"0",4,"f",2,"5",2,"b",2,"4",2,"b",2,"5",5,"f",1,"6",1,"f",1,"6",2,"f",1,"6",3,"f",1,"6",2,"f",2,"6",5,"f",1,"6",4,"f",1,"6",1,"f",115,"0",5,"f",8,"
View game.txt
{"gameLink":"www.flickgame.org","canvasses":[[61,"0",44,"f",115,"0",22,"f",1,"6",22,"f",115,"0",21,"f",2,"6",5,"f",1,"6",7,"f",3,"6",6,"f",115,"0",9,"f",5,"5",6,"f",4,"6",4,"f",1,"6",7,"f",1,"6",1,"f",1,"6",2,"f",3,"6",1,"f",115,"0",7,"f",3,"5",3,"b",2,"5",4,"f",3,"6",6,"f",1,"6",6,"f",1,"6",2,"f",1,"6",2,"f",1,"6",1,"f",1,"6",1,"f",115,"0",6,"f",3,"5",5,"b",1,"5",4,"f",1,"6",1,"f",1,"6",6,"f",1,"6",6,"f",2,"6",1,"f",1,"6",2,"f",1,"6",1,"f",1,"6",1,"f",115,"0",5,"f",2,"5",7,"b",1,"5",4,"f",3,"6",6,"f",1,"6",7,"f",3,"6",2,"f",3,"6",1,"f",115,"0",5,"f",1,"5",2,"b",3,"4",3,"b",1,"5",6,"f",3,"6",4,"f",1,"6",9,"f",1,"6",4,"f",1,"6",1,"f",115,"0",5,"f",1,"5",2,"b",3,"4",3,"b",1,"5",6,"f",1,"6",1,"f",2,"6",3,"f",1,"6",9,"f",1,"6",4,"f",1,"6",1,"f",115,"0",4,"f",2,"5",2,"b",2,"4",3,"b",2,"5",6,"f",1,"6",2,"f",1,"6",3,"f",1,"6",2,"f",2,"6",5,"f",1,"6",4,"f",1,"6",1,"f",115,"0",4,"f",2,"5",2,"b",2,"4",2,"b",2,"5",5,"f",1,"6",1,"f",1,"6",2,"f",1,"6",3,"f",1,"6",2,"f",2,"6",5,"f",1,"6",4,"f",1,"6",1,"f",115,"0",5,"f",8,"
View game.txt
{"gameLink":"www.flickgame.org","canvasses":[[61,"0",44,"f",115,"0",22,"f",1,"6",22,"f",115,"0",21,"f",2,"6",5,"f",1,"6",7,"f",3,"6",6,"f",115,"0",9,"f",5,"5",6,"f",4,"6",4,"f",1,"6",7,"f",1,"6",1,"f",1,"6",2,"f",3,"6",1,"f",115,"0",7,"f",3,"5",3,"b",2,"5",4,"f",3,"6",6,"f",1,"6",6,"f",1,"6",2,"f",1,"6",2,"f",1,"6",1,"f",1,"6",1,"f",115,"0",6,"f",3,"5",5,"b",1,"5",4,"f",1,"6",1,"f",1,"6",6,"f",1,"6",6,"f",2,"6",1,"f",1,"6",2,"f",1,"6",1,"f",1,"6",1,"f",115,"0",5,"f",2,"5",7,"b",1,"5",4,"f",3,"6",6,"f",1,"6",7,"f",3,"6",2,"f",3,"6",1,"f",115,"0",5,"f",1,"5",2,"b",3,"4",3,"b",1,"5",6,"f",3,"6",4,"f",1,"6",9,"f",1,"6",4,"f",1,"6",1,"f",115,"0",5,"f",1,"5",2,"b",3,"4",3,"b",1,"5",6,"f",1,"6",1,"f",2,"6",3,"f",1,"6",9,"f",1,"6",4,"f",1,"6",1,"f",115,"0",4,"f",2,"5",2,"b",2,"4",3,"b",2,"5",6,"f",1,"6",2,"f",1,"6",3,"f",1,"6",2,"f",2,"6",5,"f",1,"6",4,"f",1,"6",1,"f",115,"0",4,"f",2,"5",2,"b",2,"4",2,"b",2,"5",5,"f",1,"6",1,"f",1,"6",2,"f",1,"6",3,"f",1,"6",2,"f",2,"6",5,"f",1,"6",4,"f",1,"6",1,"f",115,"0",5,"f",8,"
View game.txt
{"gameLink":"www.flickgame.org","canvasses":[[61,"0",44,"f",115,"0",22,"f",1,"6",22,"f",115,"0",21,"f",2,"6",5,"f",1,"6",7,"f",3,"6",6,"f",115,"0",9,"f",5,"5",6,"f",4,"6",4,"f",1,"6",7,"f",1,"6",1,"f",1,"6",2,"f",3,"6",1,"f",115,"0",7,"f",3,"5",3,"b",2,"5",4,"f",3,"6",6,"f",1,"6",6,"f",1,"6",2,"f",1,"6",2,"f",1,"6",1,"f",1,"6",1,"f",115,"0",6,"f",3,"5",5,"b",1,"5",4,"f",1,"6",1,"f",1,"6",6,"f",1,"6",6,"f",2,"6",1,"f",1,"6",2,"f",1,"6",1,"f",1,"6",1,"f",115,"0",5,"f",2,"5",7,"b",1,"5",4,"f",3,"6",6,"f",1,"6",7,"f",3,"6",2,"f",3,"6",1,"f",115,"0",5,"f",1,"5",2,"b",3,"4",3,"b",1,"5",6,"f",3,"6",4,"f",1,"6",9,"f",1,"6",4,"f",1,"6",1,"f",115,"0",5,"f",1,"5",2,"b",3,"4",3,"b",1,"5",6,"f",1,"6",1,"f",2,"6",3,"f",1,"6",9,"f",1,"6",4,"f",1,"6",1,"f",115,"0",4,"f",2,"5",2,"b",2,"4",3,"b",2,"5",6,"f",1,"6",2,"f",1,"6",3,"f",1,"6",2,"f",2,"6",5,"f",1,"6",4,"f",1,"6",1,"f",115,"0",4,"f",2,"5",2,"b",2,"4",2,"b",2,"5",5,"f",1,"6",1,"f",1,"6",2,"f",1,"6",3,"f",1,"6",2,"f",2,"6",5,"f",1,"6",4,"f",1,"6",1,"f",115,"0",5,"f",8,"