qualitycoder/cypress-package 问题修复 & 功能扩展

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

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

qualitycoder/cypress-package

Composer 安装命令:

composer require qualitycoder/cypress-package

包简介

A Cypress package for automating tests in Drupal

README 文档

README

Specbee Logo

Documentation | Reusable Keywords | Installation | Rules | FAQ

Web Automation Framework (WAF)

Fast, easy, and reliable testing for drupal.

Introduction

Welcome to the Cypress Automation Package for Drupal! This package is designed to streamline and enhance the testing experience for Drupal developers by providing a robust set of custom Cypress commands and pre-configured test cases. With this package, you can efficiently automate end-to-end testing for your Drupal site, ensuring that your application performs as expected across various scenarios.

Installation

To get started, follow these steps:

  1. Install dependencies:
    • npm install or yarn install

Running Tests

You can run the tests using either the CLI in headless mode or the Cypress UI.

CLI - Headless Mode

  • Development environment: npm run run:test:dev
  • Production environment: npm run run:test:prod
  • Staging environment: npm run run:test:stage

Cypress UI

  • Development environment: npm run open:test:dev
  • Production environment: npm run open:test:prod
  • Staging environment: npm run open:test:stage

Running Tests with Tags

To run tests with specific tags:

  1. Update the environment and tags in the run:test:tags script:
    • "cypress run --env configFile=<envFile>,TAGS=\"<@tags>\""
  2. Run the tests:
    • npm run run:test:tags

Reusable Keywords

The Cypress Automation Package for Drupal includes a comprehensive set of reusable keywords (custom commands) designed to facilitate testing within Drupal environments. These keywords simplify test development, improve readability, and ensure maintainability.

Benefits of Reusable Keywords

  • Simplification: Reduce complexity in test scripts by using pre-defined keywords that encapsulate common Drupal actions.
  • Readability: Enhance the readability and understandability of test scripts, making them accessible even to non-technical stakeholders.
  • Maintainability: Simplify updates and maintenance by modifying the keyword definition in one place, automatically updating all associated test cases.
  • Reusability: Create modular test cases by combining reusable keywords to cover various test scenarios.

Rules

Naming Conventions

This repository follows three different naming conventions:

  1. Camel Case (testUser):

    • Used for variable names in JavaScript files and folder names.
    • Example: Variable naming in a JS file, folder name - Repo name, e.g., appCV.
  2. Snake Case (test_user):

    • Used for naming keys in .json files.
    • Example: Mapping field name - "<repo_name><section><type>": "value".
  3. Kebab Case (test-user):

    • Used for naming .js and .feature files.
    • Example: Feature files - <repo-name><function>.feature, Mapping file - Only one .json file per repo, e.g., <repo-name>.json, Business keyword - Only one .js file per repo, e.g., <repo-name>.js, Keyword - <action>.js, API - <method><section>.js.

Committing Guidelines

  • Ensure your branch is up-to-date with master.
  • Verify that your script runs without issues in both Staging and Production environments.
  • Confirm that your script is placed in the correct folder and follows the appropriate folder structure.

qualitycoder/cypress-package 适用场景与选型建议

qualitycoder/cypress-package 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 08 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 qualitycoder/cypress-package 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 qualitycoder/cypress-package 我们能提供哪些服务?
定制开发 / 二次开发

基于 qualitycoder/cypress-package 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-08-30