Skip to content

Add hook/plugin system#33

Open
NoahTheDuke wants to merge 13 commits intomainfrom
nb/hooks
Open

Add hook/plugin system#33
NoahTheDuke wants to merge 13 commits intomainfrom
nb/hooks

Conversation

@NoahTheDuke
Copy link
Copy Markdown
Owner

inspired by kaocha's hooks, here's a poor man's version.

i've been poking at this since december, i'll probably merge it soon but i'm not sure yet.

(defhook yell
  "Prints a message at the start and end of the whole run."
  (pre-test-run
    [config m]
    (println "STARTING")
    m)
  (post-test-run
    [config m]
    (println "ENDING")
    m))

it works, it's pretty chill, it doesn't seem to slow down the runner much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant