CakePHP Cookbook Documentation 5.xRunning Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Loading Fixtures in your Test Cases Fixture Factories Loading Routes in Tests Creating Routes in Tests Loading Plugins in Tests Testing Table Classes Creating a Test Method Mocking Model Methods Controller Testing a JSON Responding Controller Testing with file uploads Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Mocking Injected Dependencies0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Loading Fixtures in your Test Cases Fixture Factories Loading Routes in Tests Creating Routes in Tests Loading Plugins in Tests Testing Table Classes Creating a Test Method Mocking Model Methods Controller Testing a JSON Responding Controller Testing with file uploads Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Mocking Injected Dependencies0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xCase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677 Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681 Loading Routes in Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687 Testing . . . . . . . . . . . . 708 Creating Tests for Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709 Generating Tests with Bake . . . . . . . . . . . . .0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 779 Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 Loading Routes in Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790 Testing . . . . . . . . . . . . 812 Creating Tests for Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 813 Generating Tests with Bake . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3
Falcon v1.2.0 DocumentationResources Testing your application Request and Response Objects Refactoring for testability Functional tests Serving Images Introducing Hooks Error Handling What Now? Introduction Falcon is a minimalist, high-performance then running pytest: $ cd falcon $ pip install -r tools/test-requires $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip See also the tox.ini [https://github.com/falc application. Let’s take a moment to write a test for what’s been implemented so far. First, create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.2.0 DocumentationDocumentation, Release 1.2.0 $ cd falcon $ pip install -r tools/test-requires $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list of available application. Let’s take a moment to write a test for what’s been implemented so far. First, create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should look | - __init__.py | - app.py | - images.py - tests - __init__.py - test_app.py Falcon supports testing its API object by simulating HTTP requests. Tests can either be written using Python’s standard0 码力 | 134 页 | 498.46 KB | 1 年前3
Falcon v1.3.0 DocumentationResources Testing your application Request and Response Objects Refactoring for testability Functional tests Serving Images Introducing Hooks Error Handling What Now? FAQ Why doesn’t Falcon come with batteries repo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip See also the tox.ini [https://github.c application. Let’s take a moment to write a test for what’s been implemented so far. First, create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should0 码力 | 194 页 | 266.90 KB | 1 年前3
Falcon v1.3.0 Documentationrepo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list application. Let’s take a moment to write a test for what’s been implemented so far. First, create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should look | - __init__.py | - app.py | - images.py - tests - __init__.py - test_app.py Falcon supports testing its API object by simulating HTTP requests. Tests can either be written using Python’s standard0 码力 | 146 页 | 535.22 KB | 1 年前3
Falcon v3.0.0-b1 DocumentationDocumentation, Release 3.0.0b1 $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should now look like this: look .venv look __init__.py app.py images.py tests __init__ __init__.py test_app.py Falcon supports testing its App object by simulating HTTP requests. Tests can either be written using Python’s standard unittest module, or with any of a number of third-party testing0 码力 | 338 页 | 1.14 MB | 1 年前3
CakePHP Cookbook 3.x
Database Setup Checking the Test Setup Test Case Conventions Creating Your First Test Case Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Testing Flash Messages Testing a JSON Responding Controller Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Testing Views Testing Testing Email Creating Test Suites Creating Tests for Plugins Generating Tests with Bake Integration with Jenkins Create a Job Add Test Database Config Add your Tests Run a Build Validation Creating Validators0 码力 | 1244 页 | 1.05 MB | 1 年前3
共 72 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













