Skip to content
This repository was archived by the owner on Aug 18, 2024. It is now read-only.

Conversation

@MPParsley
Copy link
Contributor

@MPParsley MPParsley commented Feb 8, 2020

  • Re-enabled xdebug by installing Drupal one directory up. (due to a bug during module lookup that causes the stack to grow too much)
  • Added phpunit test reporter

Code coverage allows us to visualize progress and to enforce unit tests in new features.
See demo on https://youtu.be/r1joerjQL_c?t=33

This PR only reports code coverage to code climate. Code coverage can be enforced with GitHub's branch protection and configured in:
Schermafbeelding 2020-02-08 om 19 06 34

@MPParsley MPParsley changed the title Test xdebug Add code coverage Feb 8, 2020
@MPParsley MPParsley self-assigned this Feb 8, 2020
Add .codeclimate config
@pfrenssen
Copy link
Contributor

I'm not sure that this is possible with Drupal, the code base is too large to be processed in a timely fashion. I am also seeing this when trying to run code coverage analysis on my local machine.

Do you know of any examples of Drupal modules that have managed to get this working?

@MPParsley
Copy link
Contributor Author

We have some projects where we test code coverage none of them has as many Kernel tests as og.

Og has a lot of API and it will probably take too long to run, so I'm fine with closing this issue.

@MPParsley MPParsley closed this Jul 3, 2020
@MPParsley
Copy link
Contributor Author

@pfrenssen , fyi : mkalkbrenner/search_api_solr#22 (comment)

@pfrenssen
Copy link
Contributor

Github Actions are indeed a possibility to look into.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants