Contributing to SimpleMock
Contributions are welcome! Here's how to get started.
Getting Started
- Fork the repository
- Clone your fork and create a feature branch
- Install dependencies:
cpanm --installdeps . - Build:
perl Makefile.PL && make
Making Changes
- Add tests for any new functionality under
t/unit_tests/ - Ensure all tests pass:
prove -Ilib -It/lib -r t/ - Follow the existing code style
Adding a New Mock Model
- Create
lib/SimpleMock/Model/MYMODEL.pmwith avalidate_mockssub - Create
lib/SimpleMock/Mocks/Some/Module.pmto patch the target module - Add tests under
t/unit_tests/SimpleMock/Model/ - Update the MANIFEST
Submitting Changes
- Commit your changes with a clear message
- Push to your fork
- Open a pull request against the
mainbranch
Reporting Bugs
Open an issue on GitHub with steps to reproduce the problem.