Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New moodle.PHPUnit.TestCaseNames Sniff #161

Merged
merged 1 commit into from
Nov 29, 2021

Commits on Nov 28, 2021

  1. New moodle.PHPUnit.TestCaseNames Sniff

    Sniff in charge of verifying various things related with PHPUnit
    test cases names (files and classes and namespaces). Like:
    - Error: _test.php files missing any valid test case.
    - Error: incorrectly names test cases (not ended with _test[case]
    - Warning: test case classes not matching test case file names.
    - Error: found duplicate test case names.
    - Error: found test case name proposed for another test case.
    - Error: test case namespace not matching expected component namespace.
    - Warning: test case namespace missing, suggesting a correct one.
    - Error: found duplicate proposed test case names.
    - Error: found proposed test case name existing for another test case.
    
    Practically covered with unit tests. And behat tests updated.
    
    Also included, small modification to local_codechecker_testcase base
    class that now, when an incorrect fixture file is passed, it fails
    with error (previously it was exiting silently and was hard to
    detect what was happening when a typo in the fixture name was used).
    stronk7 committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    8b2a060 View commit details
    Browse the repository at this point in the history