Closed (fixed)
Project:
Sitemap
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
20 Mar 2017 at 18:13 UTC
Updated:
22 Jun 2020 at 22:19 UTC
Jump to comment: Most recent
Roadmap for developing the 8.x-2.x branch of Sitemap.
Splitting into open issues, any further work can hopefully be done there now that all tests are passing.
See also #3148838: Automated Drupal 9 compatibility fixes.
Including, potentially, sitemap 'global' default settings and plugin-specific overrides -- see commented code in SitemapSettingsForm.
Convert tests:
Comments
Comment #2
akalata commentedComment #4
akalata commentedComment #5
akalata commentedComment #7
akalata commentedComment #8
akalata commentedComment #9
akalata commentedComment #10
akalata commentedComment #12
akalata commentedComment #13
akalata commentedComment #14
akalata commentedComment #15
akalata commentedComment #16
akalata commentedComment #17
akalata commentedComment #19
akalata commentedComment #20
akalata commentedComment #21
akalata commentedComment #22
akalata commentedComment #23
Lowell commentedIt was a bumpy flight, but I managed to look through the existing tests.
Here is a list of all the old (d7) assertions that I found in those tests (from before the latest updates so this may be redundant). Please disregard if not helpful.
I was thinking we might need to identify which are unit/functional/kernel tests, and maybe organize them that way.
Also noticed we have a Tests directory, but it is spelled lowercase as tests in other modules.
And because we have namespaces now, maybe we want to name the tests without the Sitemap prefix. (for example: BookTest instead of SitemapBookTest)
BookTest
Assert that books are not included in the sitemap by default.
Assert that all book links are displayed by default.
Assert that the top-level book link is displayed, but that the others are not.
ContentTest
Assert default page title.
Assert that page title is changed.
Assert that sitemap message is not included in the sitemap by default.
Assert sitemap message is included in the sitemap.
Assert that front page is included in the sitemap by default.
Assert that front page is not included in the sitemap.
Assert that titles are included in the sitemap by default.
Assert that titles are not included in the sitemap.
CssTest
Assert that css file is included by default.
Assert that css file is not included.
MenuCustomTitleTest
Assert that main menu is included in the sitemap.
Check that the custom title appears on the sitemap
MenuTest
Assert that main menu is not included in the sitemap by default.
Assert that main menu is included in the sitemap.
Assert that node 1 and the admin link are listed in the sitemap, but not node 2.
Assert that both node 1 and node 2 are listed in the sitemap.
Check anon user doesn't see an inaccessible link for the admin link.
RssTest
Assert default RSS feed for front page.
Assert that RSS feed for front page has been changed.
Assert that RSS link for front page is included in the sitemap.
Assert that RSS links are included in the sitemap.
Assert that the 'sitemap-rss-left' class is found.
Assert that RSS link for front page is not included in the sitemap.
Assert that RSS links are not included in the sitemap.
Assert that all RSS links are not included in the sitemap.
Assert that all RSS links are included in the sitemap.
Assert that RSS links are not included in the sitemap.
Assert that only RSS feed link for term 1 is included in the sitemap.
Assert that RSS feed link for term 1 and term 2 is included in the site map.
Assert that all RSS links are included in the sitemap.
TaxonomyTermsRssTest
Assert that RSS links for terms are included in the sitemap.
Assert that RSS links are not included in the sitemap.
Assert that all RSS links are included in the sitemap.
Assert that RSS links are not included in the sitemap.
Assert that only RSS feed link for term 1 is included in the sitemap.
Assert that RSS feed link for term 1 and term 2 is included in the site map.
Assert that all RSS links are included in the sitemap.
TaxonomyTermsTest
Confirm that terms without content are not displayed by default.
Assert that terms without nodes are now displayed on the sitemap.
Assert that terms with content are displayed on the sitemap as links when term_threshold is set to -1.
Assert that terms with content are displayed on the sitemap as links.
Assert that node counts are included in the sitemap by default.
Assert that node counts are not included in the sitemap.
Assert that all tags are listed in the sitemap.
Assert that no tags are listed in the sitemap.
Assert that only tag 1 is listed in the sitemap.
Assert that tag 1 and tag 2 are listed in the sitemap.
Assert that all tags are listed in the sitemap.
TaxonomyTest
Assert that vocabulary description is not included if no tags are displayed.
Assert that the vocabulary description is included in the sitemap when terms are displayed.
Assert that vocabulary description is not included in the sitemap.
Comment #24
akalata commentedThanks Lowell!
At the sprint yesterday I was trying to get the non-plugin-related tests working, but I keep coming up against schema definition errors. Maybe because my local tests were running on 8.4 dev (but similar core tests weren't having that issue so idk).
Right now, every test is a Simpletest, which is part of why the files are in a weird spot. I thought about converting the tests into PHPUnit, but a quick attempt at that didn't fix the schema issues so I decided to limit the changes for now.
When we get to converting the tests, that's when we'll want to change the location of the files from sitemap/src/Tests to sitemap/tests/src/Functional|Kernel|Unit to match the standards. (Not sure which standards, but they were mentioned in this session).
Core modules appear to namespace their tests, so I think that should be kept -- this makes it easy to find and run specific test classes via the Testing module's UI.
Should we spin off this testing work into a separate issue? Might be a good place to silo the discussion and document it for other projects that are looking to convert their tests.
Comment #25
akalata commentedComment #26
akalata commentedComment #28
akalata commentedComment #31
akalata commentedTests are passing!
Comment #32
akalata commentedComment #33
akalata commentedComment #34
akalata commented