承接 vledermaus/phpunit-commit-reminder 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vledermaus/phpunit-commit-reminder

最新稳定版本:v0.0.2

Composer 安装命令:

composer require vledermaus/phpunit-commit-reminder

包简介

phpunit-commit-reminder: A PHPUnit extension that reminds developers to commit code changes after successful tests, promoting code stability.

README 文档

README

PHPUnit Commit Reminder is a convenient extension that streamlines your workflow by gently nudging you to commit your changes after a successful test run. It's particularly handy if you follow the Test-Driven Development (TDD) approach, ensuring that your codebase stays well-organized and up-to-date.

This extension can even handle the committing and pushing of your changes for you, saving you time and keeping your version control in sync.

Installation

You can easily integrate PHPUnit Commit Reminder into your project by using Composer. Here's how to do it:

composer require --dev vledermaus/phpunit-commit-reminder

Configuration

To activate the extension, add it to your phpunit.xml file as an extension. This configuration ensures that PHPUnit Commit Reminder runs automatically after your tests. Here's an example of how to do this:

<extensions>
    <bootstrap class="Vledermaus\PHPUnitCommitReminder\Extension"></bootstrap>
</extensions>

Usage

Using PHPUnit Commit Reminder is straightforward. Simply run your PHPUnit tests as you usually do:

./vendor/bin/phpunit

Or, with laravel:

php artisan test

After the tests complete successfully, and there are uncommitted changes in your working directory, the extension will prompt you to commit them. This helps you maintain a clean and organized codebase. Here's an example of the prompt:

......                                                              6 / 6 (100%)

Time: 00:00.007, Memory: 8.00 MB

OK (6 tests, 9 assertions)


🚨 You have uncommitted changes! 🚨


Do you want to commit them (this will add all changes)? [y/N]
> y

Please enter a commit message:
> My awesome commit message!

🎉  Changes committed! 🎉

Do you want to push them? [y/N]
> y

🚀  Changes pushed! 🚀

With PHPUnit Commit Reminder, you can stay focused on your code and let it handle the version control, making your workflow smoother and more efficient.

Give it a try and enjoy a more organized and streamlined development process!

Contributing

Contributions are welcome! If you have suggestions, bug reports, or want to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes.
  4. Submit a pull request.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-13