Closed (fixed)
Project:
Devel
Version:
7.x-1.x-dev
Component:
devel_generate
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2012 at 13:25 UTC
Updated:
20 Sep 2012 at 19:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
juampynr commentedThe attached patch adds tests for generate-vocabs, generate-terms and generate-menus commands.
Comment #3
juampynr commentedThe reason why the test fails is because there is a wrong statement at devel_generate calling taxonomy_vocabulary_load_multiple(), which changed its signature in Drupal 8. This has been fixed at #1748610: generate-x commands are not formatting correctly status messages.
Comment #4
juampynr commentedHere is a new version of the patch. It now covers generate-content too.
There is still the warning mentioned at #3 and also a weird behaviour when activating the Delete old content checkbox when generating content. Apart from it it does cover the main interactions of these features.
Comment #5
salvisThank you for taking this on — getting real tests is great!
Moshe will have to review this, but he'll probably wait until someone else has RTBC'd it.
In the meantime let me say this:
It's unfortunate that you structure your patches this way and it may delay testing and committing.
If you find a porting bug that causes something to break then you should provide a small focused patch for that (which would have good chances of being reviewed and committed quickly), rather than burying it in a much larger patch like #1748610: generate-x commands are not formatting correctly status messages that addresses a cosmetic issue.
Postponing this because it cannot be reviewed before the other patch is committed.
Comment #6
salvisBTW, setting the patch to do-not-test is not the solution. I can't speak for Moshe, but personally I don't open anything that's not green, and because you named it do-not-test we can't even re-test #4. You'll have to re-upload it once the prerequisite is committed.
Comment #7
juampynr commentedCreated a separate issue to fix the related warning. See #1753830: Wrong parameter on taxonomy_vocabulary_load_multiple().
Comment #8
juampynr commentedHere is the patch again without the do-not-test postfix. Please, once #1753830: Wrong parameter on taxonomy_vocabulary_load_multiple() gets committed re-run tests against this patch so they pass.
Comment #9
moshe weitzman commentedThanks ... I'm seeing failures in taxonomy and generate content even after committing #1753830: Wrong parameter on taxonomy_vocabulary_load_multiple().
Comment #10
juampynr commentedErrors fixed.
Comment #11
moshe weitzman commentedMy D8 won't run tests for some reason but I committed it anyway. Hope it passes.
Feel free to reopen for D7
Comment #12
juampynr commentedHere it is for Drupal 7.
Comment #13
moshe weitzman commentedCommitted to 7.x. Thanks.
It would be interesting to see if this could be done as a pure unit test, instead of a web test, at least for D8. Not urgent.