Skip to content

Instantly share code, notes, and snippets.

View HarrisonWilde's full-sized avatar

Harrison Wilde HarrisonWilde

View GitHub Profile
@torfjelde
torfjelde / revise-test.jl
Last active June 21, 2023 06:33
Script for watching and running tests or certain files (using Revise.jl to avoid full re-compilation). Useful if you're taking a test-driven development. Requries the following packages to installed in the global environment: - `ArgParse` - `Revise` - `TestEnv`
#!/usr/bin/env julia
using ArgParse
# Scenarios:
# 1. Project is specified, but no files => watch project + run `runtests.jl`.
# 2. Project is specified, and files => watch project + run files.
# Command line arguments.
s = ArgParseSettings()
@add_arg_table s begin