À tout de suite: fast self-test suite #3453
Labels
feature/data-provider
Data Providers
feature/process-isolation
Issues related to running tests in separate PHP processes
feature/test-dependencies
Issues related to explicitly declared dependencies between tests
feature/test-runner
CLI test runner
type/tests
Tests! Yes, PHPUnit, too, needs tests.
As a developer of PHPUnit
I want a fast integration test of all basic use cases
so that experimenting with the new logging is easier and more fun
Inspiration
Related to the redesign of the result event and logging system and the updates for test execution order logging and TestDox.
Working on the test execution ordering I wished I had a quick
test suitecollection of tests that shows me the general state of PHPUnit with a focus on the developer experience. The current test collection is too unwieldy to run on my old laptop continuously.What functionality to test?
Implementation
List of scenarios
Basics
Fixtures
setUpBeforeClass()
tearDownAfterClass()
setUp()
that fails alwaystearDown()
that failsDataproviders
@dataprovider
and a provider that returns a simple array@dataprovider
and a provider that returns named rows@dataprovider
@dataprovider
that returns no data@dataprovider
@dataprovider
with a duplicate key@dataprovider
rowDataProviderSkippedTest
Test execution order
@depends
on a previous test (original: no output)@depends
on a 'later' test (original: skipped, when no-depends)@depends
on a Test in another classTest collection structure
--SKIPIF--
section@requires
Isolation
@runClassInSeparateProcess
, all events reach user@runInSeparateProcess
, all events reach userIncluded printers and logging formats
--debug
The text was updated successfully, but these errors were encountered: