geerlingguy / drupalci-sonar-jenkins

DEPRECATED - Drupal CI environment with SonarQube and Jenkins for Drupal Core code analysis.
41 stars 16 forks source link

Get PHPUnit tests working for Drupal 8 #3

Closed geerlingguy closed 6 years ago

geerlingguy commented 10 years ago

Drupal 8 has over 5,000 PHPUnit tests. Let's get 'em working, and also figure out the easiest way for SonarQube to show correct code coverage (right now it's at 0.0%, and the sonar.tests property in the properties file doesn't allow wildcards (so I can't just say **/tests/** like I can with sonar.exclusions).

Maybe create a shell script to recurse through Drupal core (non-vendor directories) and build a list of the test paths? That just sounds insane to me :(

(Also, SonarQube mailing list posts mention using SonarQube's multi-module functionality, but that wouldn't be ideal because of core's file structure.).

For now, maybe just focus on adding a Phing task to call phpunit (from within workspace/drupal/core, run ./vendor/bin/phpunit, and that should do it).

geerlingguy commented 6 years ago

This project is being deprecated (though the underlying roles are still maintained); please see https://github.com/geerlingguy/drupalci-sonar-jenkins/issues/27