xml 在PHPStorm中运行Drupal Commerce测试的配置。添加到$ PROJECT / .idea / runConfigurations。化合物“商业测试跑步者”将l

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml 在PHPStorm中运行Drupal Commerce测试的配置。添加到$ PROJECT / .idea / runConfigurations。化合物“商业测试跑步者”将l相关的知识,希望对你有一定的参考价值。

#!/usr/bin/env bash
phantomjs --ssl-protocol=any --ignore-ssl-errors=true ./vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768
<!-- Snippet of environment settings. -->
  <php>
    <!-- Set error reporting to E_ALL. -->
    <ini name="error_reporting" value="32767"/>
    <!-- Do not limit the amount of memory tests take to run. -->
    <ini name="memory_limit" value="-1"/>
    <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
    <env name="SIMPLETEST_BASE_URL" value="http://localhost:8080"/>
    <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
    <env name="SIMPLETEST_DB" value="sqlite://localhost/sites/default/files/.ht.sqlite"/>
    <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
    <!--<env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/var/platform/www/sites/simpletest/browser_output"/>-->
    <env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/Users/mglaman/Drupal/sites/commerce2x/www/sites/simpletest/browser_output"/>
    <ini name="display_errors" value="On" />
    <ini name="display_startup_errors" value="On" />
  </php>
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="PhantomJS" type="BashConfigurationType" factoryName="Bash" singleton="true">
    <option name="INTERPRETER_OPTIONS" value="" />
    <option name="INTERPRETER_PATH" value="/bin/bash" />
    <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/www" />
    <option name="PARENT_ENVS" value="true" />
    <option name="SCRIPT_NAME" value="$PROJECT_DIR$/www/run-phantomjs.sh" />
    <option name="PARAMETERS" value="" />
    <module name="" />
    <envs />
    <method />
  </configuration>
</component>
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="Commerce Test Runner" type="CompoundRunConfigurationType" factoryName="Compound Run Configuration">
    <toRun type="BashConfigurationType" name="PhantomJS" />
    <toRun type="PhpBuiltInWebServerConfigurationType" name="Built-in" />
    <toRun type="PHPUnitRunConfigurationType" name="Commerce PHPUnit" />
    <method />
  </configuration>
</component>
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="Commerce PHPUnit" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
    <TestRunner configuration_file="$PROJECT_DIR$/www/core/phpunit.xml" directory="$PROJECT_DIR$/www/modules/commerce" use_alternative_configuration_file="true" />
    <method />
  </configuration>
</component>
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="Built-in" type="PhpBuiltInWebServerConfigurationType" factoryName="PHP Built-in Web Server" singleton="true" document_root="$PROJECT_DIR$/www" port="8080">
    <method />
  </configuration>
</component>

以上是关于xml 在PHPStorm中运行Drupal Commerce测试的配置。添加到$ PROJECT / .idea / runConfigurations。化合物“商业测试跑步者”将l的主要内容,如果未能解决你的问题,请参考以下文章

使用 PhpStorm 在 Laravel 中运行单一功能测试

phpstorm怎样配置php

使用 PhpStorm 在 Homestead 环境中调试 PHPUnit 测试

如何在 phpstorm 中使用指南针?

Mac软件PhpStorm 2017.3.2 开发工具免激活下载

PHP IDE:JetBrains PhpStorm 2019.2.2