[hibernate-issues] [JIRA] (HSEARCH-3958) Factorize tests applied to various predicates

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Tue Jun 23 04:44:27 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNGExMDJlMjQ4OWI2NDAwMGEzZWZlYWM1YTFlNDBmODAiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3958?atlOrigin=eyJpIjoiNGExMDJlMjQ4OWI2NDAwMGEzZWZlYWM1YTFlNDBmODAiLCJwIjoiaiJ9 ) HSEARCH-3958 ( https://hibernate.atlassian.net/browse/HSEARCH-3958?atlOrigin=eyJpIjoiNGExMDJlMjQ4OWI2NDAwMGEzZWZlYWM1YTFlNDBmODAiLCJwIjoiaiJ9 ) Factorize tests applied to various predicates ( https://hibernate.atlassian.net/browse/HSEARCH-3958?atlOrigin=eyJpIjoiNGExMDJlMjQ4OWI2NDAwMGEzZWZlYWM1YTFlNDBmODAiLCJwIjoiaiJ9 )

Issue Type: Task Assignee: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) Components: tests Created: 23/Jun/2020 01:44 AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

Most of the test applied to predicates are very similar across different predicate types: boost, multi-index compatibility, searchable/non-searchable, ...

We should factorize this code somehow, so that:

* It's easier to change all tests when a feature changes (e.g. boosts).
* It's easier to test new predicates.
* And more importantly, we don't have 1700-line-long tests consisting mostly of copy-pasted code anymore.

( https://hibernate.atlassian.net/browse/HSEARCH-3958#add-comment?atlOrigin=eyJpIjoiNGExMDJlMjQ4OWI2NDAwMGEzZWZlYWM1YTFlNDBmODAiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3958#add-comment?atlOrigin=eyJpIjoiNGExMDJlMjQ4OWI2NDAwMGEzZWZlYWM1YTFlNDBmODAiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100130- sha1:a8e63e7 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200623/5ffdea07/attachment.html 


More information about the hibernate-issues mailing list