Skip to content

Refactor how tests are run #10

Closed
Closed
@sebastianbergmann

Description

@sebastianbergmann
  • Move test execution logic out of TestResult
    • Use TestResult just as a Collecting Parameter to collect test results
  • Before the test execution starts
    • Use a TestSuiteIterator to get all tests that are to be run from the top-level TestSuite
      • Use FilterIterator implementations to filter tests based on --filter, --group, and --exclude-group, for instance
      • This allows the number of tests that are to be run to be calculated correctly before the tests are actually run
    • Sort the tests according to @depends annotations
  • Delay creation of TestCase objects and clean them up immediately after a test has been run
    • Allows for more elegant implementation of test execution in isolated PHP processes
    • Allows for running the tests in random order
    • Reduces memory footprint

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/refactoringA refactoring that should be applied to make the code easier to understand and maintain

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions