kurbar/wildduck-test-server 问题修复 & 功能扩展

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

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

kurbar/wildduck-test-server

最新稳定版本:0.8.7

Composer 安装命令:

composer require kurbar/wildduck-test-server

包简介

A helper package for writing tests that interact with Wildduck at some way

README 文档

README

This is a helper package for writing tests that interact with the Wildduck API or other parts in some way. It exposes a test server script via the vendor/node_modules bin directory to easily link it with your NPM or Compose flows.

Installation

Note: Currently only supported on Mac and Linux. Windows support is coming.

For Mac users

This package relies on readlink -f but Mac's default installed readlink does not support the -f option. Hence, coreutils should be installed. Can be installed via MacPorts or Homebrew (brew install coreutils).

Via NPM:

npm install --save-dev wildduck-test-server

Via Composer:

composer require --dev kurbar/wildduck-test-server

Usage

It can be used in different ways.

  1. As a standalone script NPM:
node_modules/bin/wildduck-test-server start|stop

Composer:

vendor/bin/wildduck-test-server start|stop
  1. Or tied into your package.json/composer.json flow NPM:
{
  "scripts": {
    "test:wd": "wildduck-test-server start && npm test && wildduck-test-server stop"
  }
}

Composer (Note: it is recommended to disable process timeout since on first start it might take a while and Composer will time out executing):

{
  "scripts": {
    "test": [
      "Composer\\Config::disableProcessTimeout",
      "wildduck-test-server start",
      "phpunit tests/",
      "wildduck-test-server stop"
    ]
  }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-16