Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 166
    • Issues 166
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #391

Closed
Open
Opened Sep 02, 2024 by Alfredo Di Napoli@AlfredoDiNapoli
  • Report abuse
  • New issue
Report abuse New issue

Write test(s) for "ngrams scores do not account for trashed documents"

I have recently fixed #385 (closed), by modifying the query which was calculating the score on document, filtering those out to not include trashed documents.

That fixed the issue, but I have actually spent considerably more time trying to write a test for it than code the actual feature; that smells like something is wrong here: if our tests are so complicated and error-prone to write, we either need a better testing infra, or we need something more on the backend side.

Either way this issue is about tracking time and bringing to completion this MR, while trying to understand why at the moment testing ngrams scores is so tricky.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
2
Labels
Testing To Do
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#391