- Timestamp:
- 09/28/2020 02:51:03 AM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter
- Property svn:ignore
-
old new 2 2 Makefile 3 3 README.md 4 CODE_OF_CONDUCT.md 5 CONTRIBUTING.md 4 6 docker-compose.yml 5 7 node_modules
-
- Property svn:ignore
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php
r9884 r10290 69 69 </table> 70 70 71 <?php if ( ! empty( $results['failures'] ) ) : ?> 71 <?php 72 if ( 73 ! empty( $results['failures'] ) || 74 ! empty( $results['errors'] ) 75 ) : 76 ?> 72 77 <h2>Errors/Failures</h2> 73 78 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/phpunit-test-reporter.php
r9884 r10290 8 8 * Text Domain: ptr 9 9 * Domain Path: /languages 10 * Version: 0.1. 210 * Version: 0.1.3 11 11 * License: GPL v3 12 12 * -
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/readme.txt
r9884 r10290 3 3 Tags: phpunit 4 4 Requires at least: 4.7 5 Tested up to: 5. 4.16 Stable tag: 0.1. 25 Tested up to: 5.5 6 Stable tag: 0.1.3 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 14 14 Captures and displays test results from the [PHPUnit Test Runner](https://github.com/WordPress/phpunit-test-runner). 15 15 16 This is the plugin that receives and generates the results displayed on https://make.wordpress.org/hosting/test-results. 17 16 18 For more details, [please read through the project overview](https://make.wordpress.org/hosting/test-results-getting-started/). 17 19 18 20 == Contributing == 19 21 20 There’s a Docker environment with several tools built in for testing. 21 To configure it, run `make` and it will automatically run `docker-compose`. 22 After that, to view the test environment, visit http://localhost:8080. 23 24 Usage: 25 - `make` or `make start`: Builds a Docker environment for testing. 26 - `make stop`: Stops Docker test environment. 27 - `make shell`: SSH to Docker test environment. 28 - `make test`: Runs `php-unit` and `phpcs` in Docker test environment. 29 30 There is also a [Grunt](https://gruntjs.com/) command for updating the `README.md` file for Github 31 after updating `readme.txt`. 32 33 Usage: 34 - `npm install`: Installs necessary dependencies. 35 - `grunt readme`: Generates `README.md` with 36 `[grunt-wp-readme-to-markdown](https://github.com/stephenharris/wp-readme-to-markdown)`. 22 Contributors are welcome! 23 Check out the [contribution guidelines](https://github.com/WordPress/phpunit-test-reporter/blob/master/CONTRIBUTING.md) for details, including how to use the build/testing tools. 37 24 38 25 == Changelog == … … 54 41 * Upgrade Docker environment to use `wordpress:5.4.1-php7.4` image. 55 42 * Correct contributor list in `readme.txt` and update `README.md`. 43 44 = 0.1.3 (September 23th, 2020) = 45 * Include errors along with failures on the error report page ([PR](https://github.com/WordPress/phpunit-test-reporter/pull/84)). 46 * Change to `integer` built-in type for `commit` field, following updates in WordPress 5.5. -
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-restapi.php
r9884 r10290 20 20 'args' => array( 21 21 'commit' => array( 22 'required' => true, 23 'description' => 'The SVN commit changeset number.', 24 'type' => 'numeric', 25 'validate_callback' => array( __CLASS__, 'validate_callback' ), 22 'required' => true, 23 'description' => 'The SVN commit changeset number.', 24 'type' => 'integer', 26 25 ), 27 26 'results' => array( … … 51 50 public static function validate_callback( $value, $request, $key ) { 52 51 switch ( $key ) { 53 case 'commit':54 if ( ! is_numeric( $value ) ) {55 return new WP_Error(56 'rest_invalid',57 __( 'Value must be numeric.', 'ptr' ),58 array(59 'status' => 400,60 )61 );62 }63 return true;64 52 case 'message': 65 53 if ( empty( $value ) || ! is_string( $value ) ) {
Note: See TracChangeset
for help on using the changeset viewer.