Skip to content

Instantly share code, notes, and snippets.

View aatchison's full-sized avatar

Arron Atchison aatchison

View GitHub Profile
@aatchison
aatchison / e2e-testing.md
Last active February 23, 2026 17:28
E2E testing setup for tbpro-add-on (DinD/devcontainer quirks)

E2E / Integration Testing — tbpro-add-on (DinD/devcontainer quirks)

PR: fix/e2e-compose-dind → main
Last updated: 2026-02-23


Overview

E2E tests run the full stack (postgres, backend, reverse-proxy, frontend) via Docker Compose and exercise the app with Playwright against Firefox. Integration tests run vitest inside the backend container against a live database.

package main
import (
"bytes"
"fmt"
"io"
"log"
"os"
"os/exec"
)
#!/usr/bin/env bash
set -Ee
TOP=$(cd $(dirname $0)/.. && pwd -L)
VIRTUALENV_ROOT=${VIRTUALENV_ROOT:-"${HOME}/.virtualenvs/mycroft"}
MYCROFT_CORE_SRC=${TOP}/src/mycroft-core
if [ "$1" = "-q" ]; then
QUIET="echo"
@aatchison
aatchison / gist:6356a9773e3bbd0c426eebabf34de1c1
Created January 15, 2017 18:35
Mycroft packaging sample with relocatable virtualenv and python bdists
#!/usr/bin/env bash
set -Ee
TOP=$(cd $(dirname $0)/.. && pwd -L)
VIRTUALENV_ROOT=${VIRTUALENV_ROOT:-"${HOME}/.virtualenvs/mycroft"}
MYCROFT_CORE_SRC=${TOP}/src/mycroft-core
if [ "$1" = "-q" ]; then
QUIET="echo"

Keybase proof

I hereby claim:

  • I am aatchison on github.
  • I am aatchison (https://keybase.io/aatchison) on keybase.
  • I have a public key whose fingerprint is 4874 E823 F124 43ED 070D 3345 9391 6D72 6465 74F9

To claim this, I am signing this object: