MarcusBarnes / mik

The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
GNU General Public License v3.0
34 stars 11 forks source link

Work on #445 - Fix limit option for CSV fetcher #473

Closed mjordan closed 6 years ago

mjordan commented 6 years ago

Github issue: (#445)

What does this Pull Request do?

Restores --limit functionality to the CSV fetcher.

What's new?

How should this be tested?

  1. Check out the issue-455 branch.
  2. Run composer update or equivalent on your system.
  3. Using the attached zip file, run mik using a variety of values for --limit. Verify in your output directory that the desired number of packages were created.
  4. Run mik using no --limit option. It will create 20 packages.
  5. Within the mik directory, run phpunit. PHPUnit should report Tests: 58, Assertions: 84, Skipped: 2..

Additional Notes

Interested parties

@bondjimbond @MarcusBarnes

issue-445.zip

bondjimbond commented 6 years ago

Note that I don't have phpunit, so can't test using that. @MarcusBarnes can you give that a try?

mjordan commented 6 years ago

@bondjimbond PHPUnit is installed by MIK. What happens when you run phpunit in the MIK directory?

bondjimbond commented 6 years ago

@mjordan Command not found.

bondjimbond commented 6 years ago

@mjordan Just had a call with @MarcusBarnes; he walked me through it. Turns out I just had to call it in the /vendor/bin directory.

Test result = all clear; mergeable.

mjordan commented 6 years ago

@bondjimbond sweet, and your manual (non-PHPUnit) tests all passed too?

Edit: Sorry, I see that they did.... :smile:

mjordan commented 6 years ago

FYI, Just ran MIK in this branch in Windows and it all worked as intended. Not that it should matter....

mjordan commented 6 years ago

@bondjimbond feel free to merge and close #445. Thanks for testing!