erolatex/wbisualception 问题修复 & 功能扩展

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

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

erolatex/wbisualception

Composer 安装命令:

composer require erolatex/wbisualception

包简介

Visual regression tests for Codeception (fork from https://github.com/nixdrey/VisualCeption)

README 文档

README

See project documentation here: https://github.com/Codeception/VisualCeption

Installation

composer require "erolatex/wbisualception:*" --dev

What added?

Pixel ratio support and png compression level options

If you use mobile emulation with custom pixelRatio option you need to define pixelRatio for VisualCeption as well:

acceptance.suite.yml

modules:
    enabled:
        - WebDriver:
             capabilities:
                 ...
                 chromeOptions:
                     ...
                     mobileEmulation:
                         deviceMetrics:
                             height: 812
                             width: 375
                             pixelRatio: 3.0

Just add pixelRatio option

modules:
    enabled:
        - VisualCeption:
            maximumDeviation: 0.05                                 # deviation in percent
            saveCurrentImageIfFailure: false                       # if true, VisualCeption saves the current
            pixelRatio: 3.0                                        # pixel ratio

If you want to change png compression level of all screenshots just add compressionLevel option:

modules:
    enabled:
            compressionLevel: 0                                       # compression for png images 0-9 ( default:0 )

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2021-11-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固