mocka icon indicating copy to clipboard operation
mocka copied to clipboard

Mocka - The complete testing framework for LUA and Nginx

Results 10 mocka issues
Sort by recently updated
recently updated
newest added

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) Welcome to [Renovate](https://togithub.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin. 🚦 To activate Renovate, merge this Pull Request....

Hello! The Readme document states that mocka has nginx embedded methods for individual testing of Openresty. However, I cannot find any support material or examples/references for that. Can you please...

Subsequent requires done inside of an oldRequire (original) should be done with oldRequire and not pass through mocka framework

bug

We need to enhance the spies/ mocks calls validation support. Right now we only know the last parameters. We want a more hands on validation based call number or other...

enhancement

Add aupport for whenCallWith for both spies and mocks

enhancement

Unit tests results.xml are incorrectly generated. Escape special characters for junit report Sample: ``` /usr/local/share/lua/5.1/mocka.lua:600: assertEquals failed: expected [allowed], was [{"error_code":"403013","message":"Your IP is not whitelisted"} ] ```

bug

Would be great if mocka integrated with ZeroBrane to the following point: - Interpreter / API - for autocompletion on global mocka framework. - Plugin for having a button to...

enhancement

It would be nice to have the c coverage report as well

enhancement

As a mocka developer I want to be able to spy on all native ngx functions. Spies should be lazy and declared by developers.

enhancement