You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Errors and failures — a test that throws is reported as an error, a failed assertion as a failure (#588)
Method coverage — Run with Coverage now lists each method with whether it ran, next to the line coverage (#587)
Outdated results — changing a test file marks its last results as outdated (#584)
Malformed phpunit.xml — reported with its file and line, on the folder in a multi-root workspace or in a message otherwise; its tests are not listed until it is fixed (#586, #589)
Busy indicator — each workspace folder shows as busy while its tests reload (#585)
Settings from the Test Explorer — the gear of a run profile opens the extension's settings (#583)
Inherited tests — test methods a class gets from parent classes and traits are listed under it, with the class's own id, and failures point to the file that declares them; parents and traits are found through composer autoload and require/include, and editing them updates the classes using them (#455–#460, #467, #469)
Unsaved edits — tests typed into an open test file are listed before it is saved (#566)
When Pest 4 rejects the PHPUnit binary, the extension offers to switch to vendor/bin/pest (#554)
Fixed
Pest ->only(): the tests it keeps from running — in every file of the run, and also when the marked test is filtered out — are reported as skipped instead of left without a result (#603)
Configuration changes: reload when composer.json changes (#464), watch the file given with -c as an absolute, ${workspaceFolder} or parent path (#563), reload once the configuration files stop changing (#567, #576), list the tests again after phpunit.xml is deleted (#560)
Watching: mark the tests of a file created during a continuous run (#561), re-parse a changed or re-created test file before rerunning it (#577), keep sibling files whose name shares a removed folder's prefix (#539), handle added workspace folders (#437)
Running: phpunit.args with a trailing flag or values containing spaces (#435, #440), two --filter arguments in sh -c / ssh commands (#538), paths with spaces over ssh (#479), local/remote mapping of whole path segments only (#478, #436, #540), UTF-8 characters split across output chunks (#541), one output parser per process (#488)
Stopping a run no longer shows an AbortError dialog or loses output (#441); rerun keeps the Debug/Coverage profile and every folder (#443)
Debugging: the port of the launch configuration named by phpunit.debuggerConfig is passed to Xdebug (#477), and each folder stops the debug session it started (#568)
Test discovery: test classes whose parent comes from vendor (#462), the default Test.php suffix (#461), ../ testsuite directories in a sibling folder (#547), Pest location hints that are relative or absolute (#575, #578)
Data sets and labels: Pest datasets built with loops, closures, integer and named keys, skip(false), nested arrays and multiple namespaces (#434, #450–#453), class constants (#544, #573), double-quoted and interpolated escapes (#545, #572), $row[0] in providers (#543), trait methods aliased with as (#546), data set keys with a newline (#574), substr keys and describe(Foo::class) in later namespaces (#548)
Changed
Requires VS Code 1.93 or later — failure stack traces use an API that older versions do not have (#605)
The @vscode-phpunit/phpunit package now owns every PHPUnit/Pest capability (default parser, configuration files to watch, failure location, one command per test, the ->only() rule, the test hierarchy as plain TestNodes); the extension only composes them into VS Code (#591–#602). Its abstract TestHierarchyBuilder, TestTreeItem, ItemCollection and TestRange are removed; use buildTestHierarchy.
The Test Explorer features above are verified in real VS Code by a new e2e suite (#604)