Making WordPress.org

Changeset 10290


Ignore:
Timestamp:
09/28/2020 02:51:03 AM (4 years ago)
Author:
dd32
Message:

Update to PHPUnit Test Reporter 0.1.3.

Props pfefferle.
Fixes #5447.

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  
        22Makefile
        33README.md
         4CODE_OF_CONDUCT.md
         5CONTRIBUTING.md
        46docker-compose.yml
        57node_modules
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php

    r9884 r10290  
    6969</table>
    7070
    71 <?php if ( ! empty( $results['failures'] ) ) : ?>
     71<?php
     72if (
     73    ! empty( $results['failures'] ) ||
     74    ! empty( $results['errors'] )
     75    ) :
     76    ?>
    7277    <h2>Errors/Failures</h2>
    7378
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/phpunit-test-reporter.php

    r9884 r10290  
    88 * Text Domain:     ptr
    99 * Domain Path:     /languages
    10  * Version:         0.1.2
     10 * Version:         0.1.3
    1111 * License:         GPL v3
    1212 *
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/readme.txt

    r9884 r10290  
    33Tags: phpunit
    44Requires at least: 4.7
    5 Tested up to: 5.4.1
    6 Stable tag: 0.1.2
     5Tested up to: 5.5
     6Stable tag: 0.1.3
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1414Captures and displays test results from the [PHPUnit Test Runner](https://github.com/WordPress/phpunit-test-runner).
    1515
     16This is the plugin that receives and generates the results displayed on https://make.wordpress.org/hosting/test-results.
     17
    1618For more details, [please read through the project overview](https://make.wordpress.org/hosting/test-results-getting-started/).
    1719
    1820== Contributing ==
    1921
    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)`.
     22Contributors are welcome!
     23Check 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.
    3724
    3825== Changelog ==
     
    5441* Upgrade Docker environment to use `wordpress:5.4.1-php7.4` image.
    5542* 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  
    2020                'args'                => array(
    2121                    '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',
    2625                    ),
    2726                    'results' => array(
     
    5150    public static function validate_callback( $value, $request, $key ) {
    5251        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;
    6452            case 'message':
    6553                if ( empty( $value ) || ! is_string( $value ) ) {
Note: See TracChangeset for help on using the changeset viewer.