-
Notifications
You must be signed in to change notification settings - Fork 10
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
Psr2 and tests #424
Psr2 and tests #424
Conversation
Clean up some PHPDocs Comply with PSR-2
Fix unit tests to not use static caches
Codecov Report
@@ Coverage Diff @@
## master #424 +/- ##
=========================================
Coverage ? 27.54%
=========================================
Files ? 79
Lines ? 4389
Branches ? 0
=========================================
Hits ? 1209
Misses ? 3180
Partials ? 0
Continue to review full report at Codecov.
|
@whikloj thanks! WRT testing, I propose:
@MarcusBarnes any thoughts? I'd confident that if there are any major problems, all of this smoke testing will reveal them. |
@MarcusBarnes since you tested most of the recent PRs for which there are sample configs and data, maybe you could rerun those tests using @whikloj's PR branch? |
Yes - I'll schedule some time later today (or tomorrow morning) to start testing the PR. |
Super, thanks! |
Confirming that when running |
I've got a script that (optionally) clones and installs MIK and IIPQA, uses MIK to generate sample input for single file, compound, book, and newspaper content models, runs MIK on this sample input, and then runs IIPQA on MIK's output. @MarcusBarnes this script is related to our discussion in #385. The script works on both current
I'm attaching the script for your inspection. I propose that:
|
@mjordan @MarcusBarnes if you all want to make your bug fixes against master, I can rebase this PR on top of those changes. |
@whikloj thanks - why don't I open a PR that implements these fixes and adds the mik_integration_tests.php, and if you can rebase those changes in, that would be great. @MarcusBarnes sound good? |
@whikloj if you don't have time to do this, I don't mind rebasing or otherwise catching up on your branch this weekend and opening a separate PR, crediting you as the commit |
@whikloj I just confirmed this by creating a new branch off of master and merging your @MarcusBarnes if we merge this into master, are there any other issues we want to resolve before tagging 0.9.0? Maybe #423, which I could do over the weekend? |
@mjordan I'm happy to merge and create a v0.9.0 release. If there are any other issues that should be resolved before the next major or minor release, we can address them and create an an appropriate patch release (e.g. v0.9.1). Thanks so much @whikloj and @mjordan for working on these pull-requests. |
Sounds good to me! Go for it! @whikloj I echo @MarcusBarnes's thanks, cleaning up our code has put us way ahead. Thanks! |
Github issue: #417 #277 #419 (this also subsumes PR #420 and issue #406 )
What does this Pull Request do?
It:
metadata
function. (Add abstract method ->metadata() to MetadataParser.php #406)What's new?
Lots, sooooo much.
A lot of code style fixes to work with PSR-2, re-organization of the tests and the addition of a new Testing Base Class (MikTestBase), changes to all tests to define
'use_cache' = > true
when ever definingFETCHER
orFILEGETTER
configuration. Also ensure that all fetchers and file_getters that use a static cache skip it with'use_cache' => false
.How should this be tested?
This is alot, not sure how to make it clean. Tests should still work.
To help reviewers test your work:
Indicate whether your work requires a smoke test or is covered by PHPUnit tests (see CONTRIBUTING.md for more information).
Work is covered by unit tests, but testing with any handy config lying around might make sense.
If your work is covered by PHPUnit tests, indicate how many successful tests and assertions the reviewer should see when they run your tests.
I am seeing
If your work requires a smoke test, provide sample configuration files and data for reviewers.
This is a tough call, not sure what is the best way to ensure stability with this PR.
Be as detailed as possible.
Good testing instructions and sample confiruation files/data help get your PR completed faster.
Additional Information
This also outputs code coverage data, if @MarcusBarnes wants to setup the
mik
repo for use with http://codecov.io then you can see what parts of your code are actually tested by the existing tests and then work to cover the other parts in future.Interested parties