Skip to content

manphiz/el-mock.el

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

El mock

Build Status Coverage Status MELPA MELPA stable Tag Version License

NOTE: El mock has moved from http://www.emacswiki.org/emacs/el-mock.el to https://github.com/rejeep/el-mock.el and its new maintainer is @rejeep.

El mock is a mocking library for Emacs.

How to use it

Add this to your test-helper, for instance

(require 'el-mock)

An example of a simple mock that displays "/mocked/file/name.el":

(with-mock
  (stub buffer-file-name => "/mocked/file/name.el")
  (display-message-or-buffer (buffer-file-name)))

Documentation

Find the documentation at M-x describe-function RET with-mock RET and M-x describe-function RET mocklet RET.

The old documentation is at https://www.emacswiki.org/emacs/EmacsLispMock

Contribution

Be sure to!

Install Cask if you haven't already.

Run the unit tests with:

$ make test

About

Mocking library for Emacs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 99.8%
  • Makefile 0.2%