Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix the link I've managed to already break

  • Loading branch information...
commit 98f72973268822455d11b366e9eaa15e4afedd96 1 parent 2ed62a1
Dave Reisner authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  _posts/2012-12-25-dont-mock-me.textile
3  _posts/2012-12-25-dont-mock-me.textile
View
@@ -21,7 +21,8 @@ With these 2 things in mind, you can intercept any call which isn't a function,
This still isn't very interesting, since causing all your external commands to do nothing will probably also cause your actual code to fail. So, simply define functions with the same name as the binaries you call. Now you can set the behavior for those functions which really matter and simply leave Apron to automatically stub out the rest.
-With a little extra bookkeeping, Apron tracks what functions you've defined as mocks and lets you suspend and restore the mocked environment. I've written a simple "example":https://github.com/falconindy/apron/blob/master/apron-test as a test of the framework in action.
+With a little extra bookkeeping, Apron tracks what functions you've defined as mocks and lets you suspend and restore the mocked environment. I've written a simple "example":https://github.com/falconindy/apron/blob/master/mock-test as a test of the framework in action.
It's likely going to take a fair bit of effort, but I'm already quite pleased with how Apron is working (even at under 100 lines of code), and I'm fairly excited about making mkinitcpio more testable on a unit level. Perhaps, in the process, someone else finds this useful too.
+Update: Apron supports expectations now, too. The latest "README":https://github.com/falconindy/apron/blob/master/README.md documents how to use it, and there's of course also an "example":https://github.com/falconindy/apron/blob/master/expect-test to go along with it.
Please sign in to comment.
Something went wrong with that request. Please try again.