Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Improve automated tests #16

Open
straube opened this issue May 25, 2018 · 3 comments
Open

Improve automated tests #16

straube opened this issue May 25, 2018 · 3 comments

Comments

@straube
Copy link
Owner

straube commented May 25, 2018

I'm not sure whether all features can be tested outside a WP installation (possibly Mockery would be helpful on that) but at least the utilities and some other methods could be automatically tested with PHPUnit. I guess the first step to achieve that is moving the MultipleDomain class have to its own file. That would separate the plugin bootstrap logic from the class itself.

@straube straube added this to the 0.8 milestone May 25, 2018
@straube straube modified the milestones: 0.8, 1.0 May 25, 2018
@straube
Copy link
Owner Author

straube commented Mar 12, 2019

A helpful link: https://make.wordpress.org/cli/handbook/plugin-unit-tests/. Perhaps?

@straube straube closed this as completed Apr 19, 2019
@straube
Copy link
Owner Author

straube commented Oct 28, 2019

The tests we have now are too limited in terms of code coverage. They simply look for errors in instance creating. I'm reopening this issue to improve the tests.

@straube straube reopened this Oct 28, 2019
@straube straube removed this from the 1.0 milestone Oct 28, 2019
@straube straube changed the title Add automated tests Improve automated tests Oct 28, 2019
@straube
Copy link
Owner Author

straube commented Oct 29, 2020

The current Travis configuration tests the code in old PHP releases. As an effort to make people use recent/secure versions, stop testing in these versions is a good thing.

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

No branches or pull requests

1 participant