Skip to content

Extend Utilities and Testing to Perform Snapshots #42

@NyanKiyoshi

Description

@NyanKiyoshi

Is your feature request related to a problem? Please describe.
We would like to be able to record a bench session to generate snapshot files to be able to compare diffs and analyze SQL queries and query count.

Describe the solution you'd like
Generate a snapshot per test per module. This would be in a YAML format in order to make it more readable (human-friendly) for pull request reviewers but also for developers locally.

We would also include EXPLAIN queries, as part of #41.

We would include:

  • The SQL query without the values – allows to detect issues and huge amount of parameters
  • The query count in the root (top)

Which would look something like:

count: 12
duplicates: 8
queries:
  - sql: >
      SELECT foo FROM bar WHERE id IN (?, ?, ?, ?, ?, ?)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions