The following tests cases should be written in order to have a consistent view for new patches that might possible change current functionality
Tests that already exist are already marked
Base Framework (Solr disabled)
Enable module
apachesolr.index.inc should not be loaded everywhere
Search index should show a notice that no solr instance is connected
SolrBaseQuery unit test
SolrFilterSubQuery unit test
ApacheSolrDocument unit test
Changing Content type
Adding/Modifying taxonomy term
Add a user, add content as that user and modify content
Base Framework (Solr enabled)
Connection should be succesful
DrupalApacheSolrService unit test
Index should be empty
Send test content & verify (UTF-8 included)
Modify content & verify
Delete content & verify
index status should be correct with the indexed content
Solr config files should be listed properly
Number of items per cron run should work
On failure, the configured result should show
Delete index
Reindex index
Simple facet testing ? // Not possible, need facetapi for that
Search Environment
Editing an environment
Cloning an environment and delete
Create a new environment and delete
Change read and write setting and verify
Add a new environment and make it default
Search Pages
Core search page available
Editing the core_search page
Clone the core_search page
Create a new search page and delete
Change search page title
Test search page types (taxonomy) // Not able to check properly without solr
Change search page path
Add a custom filter // Not able to check properly without solr
Change results per page // Not able to check properly without solr
Enable/disable spell check // Not able to check properly without solr
Empty search behavior // Not able to check properly without solr
Bias
Analyze content and validate helper functions
Exclude content type
More like this
Add a more like this block
Remove a more like this block
Validate configuration of more like this block
Node Access (Solr Enabled)
Index testing content without access rules
Index testing content with access rules
Change permission, validate if being reindexed
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | 1397138-19.patch | 56.28 KB | nick_vh |
| #17 | 1397138-17.patch | 55.3 KB | nick_vh |
| #16 | 1397138-16.patch | 54.48 KB | nick_vh |
| #14 | 1397138-14.patch | 51.45 KB | nick_vh |
| #11 | 1397138-11.patch | 48.7 KB | nick_vh |
Comments
Comment #1
nick_vhFirst patch.
Base Framework (Solr disabled)
Enable moduleSearch index should show a notice that no solr instance is connectedSolrBaseQuery unit testSolrFilterSubQuery unit test??
ApacheSolrDocument unit testIt seems that the SubQuery test doesn't load and when I try to execute it it is failing. Waiting on response for the status of this subQuery class. Continueing now for the Base Framework tests with Solr enabled
Setting the status on needs review so the test bot can execute all of these tests
Comment #3
nick_vhUpdating, so it does not require apachesolr.module or any db queries to run the apachesolr document unit test
Comment #4
nick_vh+ add test that verifies we are not loading the apachesolr.index.module on every or certain page loads
Comment #4.0
nick_vhSome more information
Comment #5
nick_vhAdded test to verify this apachesolr.index.module + better subquery tests
Comment #6
nick_vhForgot a dsm and reverted a function from private to public. Fixed now
Comment #6.0
nick_vhnew tests
Comment #7
nick_vhAdded interface as separate file to the patch
Comment #7.0
nick_vhUpdated issue summary.
Comment #7.1
nick_vhUpdated issue summary.
Comment #9
nick_vhAdded test to clone a search environment
Comment #11
nick_vhI had to modify the way of the operator in the FilterQuery parser :
Now :
Before :
This has as a consequence that subqueries now have to define their operator in the AddFilterQuery :
The first example is easy to make with the previous code, the second example is nearly impossible unless you use an empty base query where you add subqueries to.
Comment #11.0
nick_vhUpdated issue summary.
Comment #12
nick_vhComment #14
nick_vhAfter some mysql performance problems there is some update of the testing suite. Now all the tests available should succeed. Let's cross fingers!
Comment #15
nick_vhComment #15.0
nick_vhStrike through of clone button
Comment #16
nick_vhAdding search pages tests
Comment #16.0
nick_vhUpdated issue summary.
Comment #17
nick_vhAdded a clone search page test
Comment #17.0
nick_vhUpdated issue summary.
Comment #18
pwolanin commentedper discusison need to leave the operator logic as-is
seems like we need some documentation
Comment #19
nick_vhReverted the operator logic and all that came along with it. Attached is the last patch for today regarding the simpletests.
Comment #19.0
nick_vhUpdated issue summary.
Comment #19.1
nick_vhUpdated issue summary.
Comment #20
nick_vhCommitted what we have so far. Addons always welcome
Comment #20.0
nick_vhUpdated issue summary.
Comment #21
nick_vhCommitted all #19 to 6.x-3.x
Comment #22
nick_vhMore simpletests will go in as separate issues. Closing this one
Comment #23
nick_vhHmm, second thoughts, reopening
Comment #24
nick_vhWe can always add more when needed. Closing as a final thought :-)
Comment #24.0
nick_vhUpdated issue summary.