yireo/magento2-live-test-runner 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

yireo/magento2-live-test-runner

Composer 安装命令:

composer require yireo/magento2-live-test-runner

包简介

N/A

README 文档

README

This module allows you to run PHPUnit-based live tests in Magento 2. Normally, PHPUnit-based code focuses on creating unit tests, integration tests, functional tests and other. But what if you simply want to debug an issue in a copy of a production site? Not a controlled clean environment, but the real deal. To guarantee that certain functionality remains, testing makes sense here as well. Hence the dubbed live tests.

A live test is nothing more than a PHPUnit test, but including the Magento application (including database, caching and other) as a bootstrap. With this, you can fetch products from the database and guarantee that their

Usage

Create your own tests within a folder Test/Live (or something else). Next, run the following command, pointing towards your testing folder:

bin/magento yireo_livetest:run app/code/Foo/Bar/Test/Live

Done.

Tests could be extending upon the parent classes \Yireo\LiveTestRunner\TestCase\CatalogTestCase and \Yireo\LiveTestRunner\TestCase\GenericTestCase, but only if you want to: You can make any assertions using any library out there. This module simply makes sure the Magento bootstrap of your actual dev environment is run.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2021-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固