Skip to content

Latest commit

 

History

History
350 lines (265 loc) · 17.6 KB

CHANGELOG.md

File metadata and controls

350 lines (265 loc) · 17.6 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Fixed

  • toThrow expectation when exception does not exist (#487)

Fixed

  • sequence callables causing problems (#442)

Added

  • warn about xdebug modes (1e011c)

Added

  • throwsIf test call (#371)
  • --ci CLI option to ignore development options like ->local() (#405)
  • when conditional expectation (#406)
  • unless conditional expectation (b43a598)
  • match conditional expectation (#407)

Fixed

  • sequence with more expectations than iterable elements (#399)

Added

  • PHP 8.1 support (e6c7d68)
  • toHaveProperties expectation (#391)

Added

  • toHaveLength expectation (#386)
  • nunomaduro/collision:^6.0 support (4ae482c)

Added

  • toThrow expectation (#361)

Added

  • Support for new parallel options (#369)

Added

  • toBeTruthy and toBeFalsy (#367)

Added

  • A new bound closure that allows you to access the test case in Datasets (#364)

Added

  • A cleaner output when running the Pest runner in PhpStorm (#350)
  • toBeIn expectation (#363)

Fixed

  • skip with false condition marking test as skipped (22b822c)

Added

  • --force option to override tests in pest:test artisan command (#353)
  • Support for PHPUnit ^9.3.7 (ca9d783)

Fixed

  • beforeAll and afterAll behind called multiple times per test (#357)

Added

  • Support for interacting with datasets in higher order tests (#352)

Changed

  • The unit test stub now uses the expectation API (#348)

Fixed

  • PhpStorm will no longer show 0 assertions in the output (#349)

Added

  • The ability to use higher order expectations inside higher order tests (#341)

Fixed

  • Callable expect values in higher order tests failing if the value was an existing method name (#334)

Changed

  • You may now pass just an exception message when using the throws method (#339)

Added

  • A new tap and test case aware expect methods for higher order tests (#331)
  • Access to test case methods and properties when using skip (#338)

Fixed

  • The and method not being usable in Higher Order expectations (#330)

Added

  • Support for non-callable values in the sequence method, which will be passed as toEqual (#323)
  • Support for nested Higher Order Expectations (#324)

Added

  • Adds a new json expectation method to improve testing with JSON strings (#325)
  • Adds dot notation support to the toHaveKey and toHaveKeys expectations (#322)

Changed

  • Moves plugins from the require section to the core itself (#317), (#318), (#320)

Added

  • Support for multiple datasets (Matrix) on the with method (#303)
  • Support for incompleted tests (49de462)

Fixed

  • Test cases with the @ symbol in the directory fail (#308)

Added

  • Added for PHPUnit 9.5.5 (#310)

Changed

  • Lock minimum Pest plugin versions (#306)

Added

  • Named datasets no longer show the arguments (#302)

Fixed

  • Wraps global functions within function_exists (#300)

Fixed

  • Laravel commands failing with new --test-directory option (#297)

Added

  • Adds JUnit / Infection support (#291)
  • --test-directory command line option (#283)

Added

  • Possibility of "hooks" being added using the "uses" function (#282)

Added

  • Add --browse option to pest:dusk command (#280)
  • Support for PHPUnit 9.5.4 (#284)

Added

  • Support for PHPUnit 9.5.3 (#278)

Added

  • Support for test extensions (#269)

Added

  • Support for PHPUnit 9.5.2 (#267)

Added

  • Support for PHPUnit 9.5.1 (#261)

Fixed

  • Fix TestCase@expect PHPDoc tag (#251)

Added

  • pest:test --dusk option (#245)

Changed

  • Stable version
  • Updates init structure (#240)

Fixed

  • Fix binary path in pest:dusk command (#239)

Added

Fixed

  • Class inheritance with depends() (#236)

Changed

  • Moves expectation API for external plugin (5d7f262)

Added

  • Support for PHPUnit 9.5.0 (#234)
  • Support for extending expectation API (#232)

Fixed

  • Static analysis while using string as key for datasets (#233)

Added

  • pest:dusk command (#223)
  • Better feedback on errors in toMatchArray and toMatchObject (#231)

Added

Fixed

  • Resolve issue with name resolution in depends() (#216)

Added

  • Add support for PHPUnit 9.4.3 (#219)

Changed

  • Improved the exception output for the TeamCity printer (usage with phpstorm plugin) (#215)

Added

  • Add support for PHPUnit 9.4.2 (d177ab5)

Added

  • Add support for named datasets in description output (#134)
  • Add Pest version to --help output (#203)
  • Add support for PHPUnit 9.4.1 (#207)

Added

  • Add support for PHPUnit 9.4.0 (#199)

Fixed

  • Fix chained higher order assertions returning void (#196)

Added

  • Add support for PHPUnit 9.3.11 (#193)

Added

  • toMatch expectation (#191)
  • toMatchConstraint expectation (#190)

Added

  • toStartWith and toEndWith expectations (#187)

Added

  • toMatchObject expectation (4e184b2)

Added

Added

  • Support to PHPUnit 9.3.9, and 9.3.10 (1318bf9)

Added

  • Support to PHPUnit 9.3.8 (#174)

Added

  • Expectation API (TODO)
  • PHPUnit 9.3 and PHP 8 support (#128)
  • Forwards $this calls to globals (#169)

Fixed

  • don't decorate output if --colors=never is set (36b879f)

Added

  • --init and pest:install artisan command output changes (#118, db7c4b1)
  • --version option to view the current version of Pest (9ea51ca)

Added

  • depends phpunit feature (#103)

Fixes

  • datasets name conflict (#101)

Fixes

  • Multiple uses in the same path override previous uses (#97)

Adds

  • --init option to install Pest on a new blank project (70b3c7e)
  • pending higher orders tests aka tests without description (aa1917c)

Fixed

  • --verbose and --colors options not being used by printers (#51)
  • missing support on windows (#61)

Changed

  • helpers.php stub provides now namespaced functions
  • functions provided by plugins are now namespaced functions:
use function Pest\Faker\faker;

it('foo', function () {
    $name = faker()->name;
});

Fixed

  • Missing default decorated output on coverage (88d2391)

Added

  • Support to Lumen on artisan commands (#18)

Fixed

  • Mockery tests without assertions being considered risky (415f571)

Added

  • Plugin::uses() method for making traits globally available (6c4be01)

Added

  • Support to custom helpers (#7)

Added

  • test function without any arguments returns the current test case (6fc55be)

Fixed

  • "No coverage driver error" now returns proper error on Laravel (28d8822)

Added

  • First version