Page MenuHomePhabricator

Write tests for the metrics application
Closed, ResolvedPublic

Description

Context

we are also going to be relying on this information to inform the ways we invest our time and do further research. so, as much as possible, we should be able to rely on the accuracy of the information, the stability and reliability of the application (especially in automatically gathering data), and how up-to-date the information is.

that said, the application is an MVP so please choose an appropriate timebox for this stage of the project.

Acceptance criteria

  • Test databases with Great Expectations
  • Test data acquisition and calculation methods
  • Test GraphQL Queries

Great Expectations tests:

  • All columns exist
  • All unique columns have unique values
  • All unique column combinations have unique values
  • All strings non-empty and trimmed
  • All boolean and enum columns have only legal values
  • All non-null columns not null
  • All observation data not-null iff returned data is true
  • All secondary observation tables have data iff returned data is true

...this is starting to sound like more than one ticket.

Event Timeline

RickiJay-WMDE changed the subtype of this task from "Spike" to "Task".Aug 21 2024, 8:51 PM