Skip to content

test: System tests create and destroy way too many datasets #716

@jimfulton

Description

@jimfulton

Every system tests creates and destroys a temporary dataset in it's setUp and tearDown.

  • Some system tests don't use the dataset created.
  • Some system tests create and destroy their own datasets, seemingly oblivious that temporary datasets were already created for them.

This makes system tests take far longer than they should. ~10 minutes

Proposed fix:

  • Don't create datasets by default. Make tests elect to create them.
  • Move toward pytest fixtures to elect creating datasets.
    • Use session fixtures to avoid creating a dataset for each test.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.testingtype: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions