CakePHP Cookbook Documentation 5.xCase Conventions Creating Your First Test Case Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit assert() will yield faster runtime performance, and is recommended for applications that have good test coverage or that are using a static analyzer. Deploying an update On each deploy you’ll likely have a few Code Coverage You can generate code coverage reports from the command line using PHPUnit’s built-in code coverage tools. PHPUnit will generate a set of static HTML files containing the coverage results0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xassert() will yield faster runtime performance, and is recommended for applications that have good test coverage or that are using a static analyzer. Deploying an update On each deploy you’ll likely have a few Code Coverage You can generate code coverage reports from the command line using PHPUnit’s built-in code coverage tools. PHPUnit will generate a set of static HTML files containing the coverage results You can generate coverage for a test case by doing the following: $ phpunit --coverage-html webroot/coverage tests/TestCase/Model/Table/ArticlesTableTest This will put the coverage results in your application’s0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 3.x
Case Conventions Creating Your First Test Case Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Code Coverage You can generate code coverage reports from the command line using PHPUnit’s built-in code coverage tools. PHPUnit will generate a set of static HTML files containing the coverage results You can generate coverage for a test case by doing the following: $ phpunit --coverage-html webroot/coverage tests/TestCase/Model/Table/ArticlesTableTest This will put the coverage results in your application’s0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
Code Coverage You can generate code coverage reports from the command line using PHPUnit’s built-in code coverage tools. PHPUnit will generate a set of static HTML files containing the coverage results You can generate coverage for a test case by doing the following: $ phpunit --coverage-html webroot/coverage tests/TestCase/Model/Table/ArticlesTableTest This will put the coverage results in your application’s pp/coverage. If you are using PHP 5.6.0 or greater, you can use phpdbg to generate coverage instead of xdebug. phpdbg is generally faster at generating coverage: $ phpdbg -qrr phpunit --coverage-html0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
Case Conventions Creating Your First Test Case Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Code Coverage You can generate code coverage reports from the command line using PHPUnit’s built-in code coverage tools. PHPUnit will generate a set of static HTML files containing the coverage results You can generate coverage for a test case by doing the following: $ phpunit --coverage-html webroot/coverage tests/TestCase/Model/Table/ArticlesTableTest This will put the coverage results in your application’s0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
Code Coverage You can generate code coverage reports from the command line using PHPUnit’s built-in code coverage tools. PHPUnit will generate a set of static HTML files containing the coverage results You can generate coverage for a test case by doing the following: $ phpunit --coverage-html webroot/coverage tests/TestCase/Model/Table/ArticlesTableTest This will put the coverage results in your application’s http://localhost/your_app/coverage. You can also use phpdbg to generate coverage instead of xdebug. phpdbg is generally faster at generating coverage: $ phpdbg -qrr phpunit --coverage-html webroot/coverage tests/TestCase/Model/Table/0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
code coverage If you have Xdebug [https://xdebug.org] installed, you can view code coverage results. Code coverage is useful for telling you what parts of your code your tests do not reach. Coverage is the future, and gives you one measurement to track your testing progress with. The inline code coverage uses green lines to indicate lines that have been run. If you hover over a green line a tooltip code coverage You can generate code coverage reports from the command line using PHPUnit’s built-in code coverage tools. PHPUnit will generate a set of static HTML files containing the coverage results0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
Viewing code coverage If you have Xdebug117 installed, you can view code coverage results. Code coverage is useful for telling you what parts of your code your tests do not reach. Coverage is useful for the future, and gives you one measurement to track your testing progress with. The inline code coverage uses green lines to indicate lines that have been run. If you hover over a green line a tooltip code coverage You can generate code coverage reports from the command line using PHPUnit’s built-in code coverage tools. PHPUnit will generate a set of static HTML files containing the coverage results0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













