The current index tests only have one index type (_test_) and therefore don't have any guarantee that results are not crossing over. This addition sets the stage for more rigorous testing and does some basic smoke tests to see that changing the index type in the query indeed produces the right results.

Comments

robertdouglass’s picture

Title: Testing: add second index type and guarantee no cross-over results » Testing: Search: Add second index type and guarantee no cross-over results
boombatower’s picture

StatusFileSize
new2.16 KB

Looks good, I would recommend making _test_: in the documentation a bit more clear, but that is very small.

Re-rolled against HEAD and removed a bit of white-spacing.

I'm not up on searching stuff, and minor issue so leaving as needs review.

robertdouglass’s picture

StatusFileSize
new2.61 KB

Added comments for _test_, found a stray instance of foo. Foo tends to sneak in if you're not watching.

lilou’s picture

Small typo : +// In this test we test witl _test_ and _test2_ as the type.

robertdouglass’s picture

StatusFileSize
new2.61 KB
Anonymous’s picture

Status: Needs review » Needs work

The last submitted patch failed testing.

robertdouglass’s picture

Status: Needs work » Needs review
StatusFileSize
new2.44 KB

Rerolled. Tests pass.

Status: Needs review » Needs work

The last submitted patch failed testing.

boombatower’s picture

Status: Needs work » Needs review
catch’s picture

Title: Testing: Search: Add second index type and guarantee no cross-over results » Tests for multiple search index types
Component: tests » search.module
Category: bug » task
Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs tests

Looks good to me. Still applies and passes.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -Needs tests

Automatically closed -- issue fixed for 2 weeks with no activity.