Skip to content

mockagne/mockagne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mockagne - Mocking Framework for Lua

Build Status

mockagne is a fully dynamic mocking framework that is designed to be a Lua variant of the famous Java framework mockito.

In a Nutshell

local mockagne = require("mockagne")
local mock = mockagne.getMock()
mockagne.when(mock.say(mockagne.any())).thenAnswer("Hello world")
-- ...
mock.ask("What's your name?")
mockagne.verify(mock.ask("What's your name?"))

Information for Users

Dependencies

Runtime Dependencies

mockagne is a single-file pure-Lua module with no other runtime dependencies than Lua 5.1 or later.

Test Dependencies

Dependency Purpose License
busted Unit testing framework MIT License

License

mockagne is Open Source, distributed under the terms of the MIT license.

Copyright (c) 2013 Punch Wolf Game Studios. Copyright (c) 2020 Exasol.

About

Fully dynamic mocking for Lua

Topics

Resources

License

Stars

15 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors

Languages