-
Notifications
You must be signed in to change notification settings - Fork 47
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
Testing: implement automated tests + write manual functional test instructions #55
Comments
I can take a stab at this. I've been doing a lot more unit testing recently. |
While working on this, I found a bug in the code that checks to see if we're on the existing page. If there isn't a permalink structure set, it gets caught in a redirect loop. I'll address this as part of the pull request.
|
I have about 48% code coverage so far and automated tests running here: https://travis-ci.org/petenelson/restricted-site-access This branch has all of the new unit tests code and is still a work-in-progress. I'll get a PR opened for this once it's closer to full code coverage. |
Punting this out of 7.1.0 because it's not really tied to a milestone and I want to continue using it as an umbrella for implementing WP Acceptance tests and hopefully reducing the fragile HTML-based tests. |
Also a note that |
Popular plugin that is supposed to help you with site privacy with an array of options - very important we test all situations and ensure they continue to work as expected through changes in the plugin and WordPress core, both in an automated fashion and manually during release prep.
I am not sure that automated tests can be thorough without actually bootstrapping WordPress, i.e. I'm not sure
WP_Mock
will be good enough to catch things like #53 proactively. If it is, that's great! But my sense is that integration tests will be just as, if not more, important as unit tests, because if core changes the way redirects or query var filling works, we can't mock that.Here's what needs to be tested (we can turn this into a proper matrix at some point), please feel free to note anything I've neglected:
RSA technical features
WordPress features
RSA UI features
The text was updated successfully, but these errors were encountered: