Skip to content

Instantly share code, notes, and snippets.

@cessor
cessor / testrunner.py
Last active March 19, 2024 08:12
StopwatchTestRunner
import time
import statistics
import unittest
from unittest import TextTestRunner
from django.test.runner import DiscoverRunner
class StopwatchTestResult(unittest.TextTestResult):
"""
Times test runs and formats the result
@bclinkinbeard
bclinkinbeard / release.sh
Created November 1, 2011 20:22
Bash script to automate the Git Flow tag/release process
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# v1.0.0, v1.5.2, etc.
versionLabel=v$1
# establish branch and tag name variables
devBranch=develop