Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a feeling to get the module actually working it'd be really helpful to have automated tests for it.
Update Manager has some nice dummy tests we could probably copypasta a lot from here.
Brainstorm of test cases:
- Module that has no 8.x release. Example: most of them. :P~
- Module that has a stable release for 8.0. Example: https://drupal.org/project/bad_judgement
- Module that has a 8.x dev snapshot only. Example: https://drupal.org/project/libraries
- Module that has a 8.x alpha release. Example: https://drupal.org/project/ds
- Module that has a 8.x beta release. Example: https://drupal.org/project/honeypot
- Module that has a 8.x rc release. Example: https://drupal.org/project/fb_likebox
- Module that was moved into core, no caveats. Example: https://drupal.org/project/views (this one also has a dev snapshot so that might be interesting.)
- Module that was moved into core partially, and has some caveats. Example: https://drupal.org/project/date
- Module that was moved into core with a name switch. Example: https://drupal.org/project/navbar
Comments
Comment #1
webchickComment #2
webchickBrainstorming some test cases.
Comment #3
webchickFixing version now that there's a dev release for 7.x-1.x.
Comment #4
sunHm. I don't know... Unit-testing the version comparer might make some sense.
But in the end, writing proper tests will require a lot of time, and I'm not sure whether that is really worth the effort... (?)
That's just meant to say... I could happily live and survive without tests. :-)
Comment #5
webchickFair enough. :) I thought it might be fun. I'll see if I get another weekend to myself someday. :D
Comment #6
colanLooks like that hasn't happened. ;)
Comment #7
Kristen PolGiven the timing of D7 EOL and the effort involved here, I'm not convinced this is worth keeping open. I doubt anyone would take this on. Thoughts?
Comment #8
Gábor HojtsyWith all the other issues possibly getting more involvement with the impending Drupal 7 EOL, I think this is may still be relevant. Now with Drupal 7 to 9 (soon to 10) upgrade info.