oxid-esales/amazon-pay-module

OXID的AmazonPay模块

安装次数: 7,436

依赖: 0

建议: 0

安全: 0

星标: 18

关注者: 19

分支: 9

类型:oxideshop-module

v3.1.6-rc.1 2024-06-27 21:32 UTC

README

为OXID eShop 6.3到7.1提供的Amazon Pay集成。

文档

分支兼容性

  • b-6.3.x模块分支与OXID eShop编译6.3到6.5兼容
  • b-7.0.x模块分支与OXID eShop编译7.0及以上兼容

安装

限制

在德语文档Wann können Sie Amazon Pay nicht anbieten?

运行测试

警告:运行测试将重置商店。

要求

  • 确保test_config.yml已配置
    partial_module_paths: osc/amazonpay
    * ```
    activate_all_modules: true
    run_tests_for_shop: false
    run_tests_for_modules: true
    
  • 为了运行codeception测试,selenium服务器应该是可用的,有几种解决方案
    • 使用OXID官方vagrant box环境
    • 使用OXID官方docker sdk配置
    • 使用其他预配置的容器,例如:image: 'selenium/standalone-chrome-debug:3.141.59'

开发javascript

  • 我们使用grunt
  • 目前php容器中没有安装grunt
  • 所以在您的宿主系统上安装它:https://grunt.node.org.cn/getting-started
    • sudo npm install -g grunt-cli
    • cd source/modules/osc/amazonpay/resources
    • npm install grunt --save-dev
  • 使用: grunt
  • cd source/modules/osc/amazonpay/resources
  • grunt # 此命令编译sass => out/src/css/* 和 out/src/js/*

运行

运行phpunit测试

vendor/bin/runtests

运行带有覆盖率报告的phpunit测试(报告生成在.../amazonpay/Tests/reports/目录中)

XDEBUG_MODE=coverage vendor/bin/runtests-coverage

默认方式运行codeception测试(主机:selenium,浏览器:chrome)

vendor/bin/runtests-codeception

使用特定主机/浏览器/测试组的示例运行codeception测试

SELENIUM_SERVER_HOST=seleniumchrome BROWSER_NAME=chrome vendor/bin/runtests-codeception --group=examplegroup