Skip to content

tests: use fixtures within one test module to speed up tests #1428

Open

Description

@janfb

Within a test module, e.g., linearGaussian_snpe_test.py, we repeatedly training NPE to test something. Sometimes it makes sense to train NPE from scratch every time, e.g., when testing different priors or different training settings, data dimensions etc.

However, sometimes we testing something that is downstream of the training and the training setting remains the same. In that case, we should cache the time intensive training using a pytest fixture defined at top level of the test module.

Activity

  1. added
    tests
    on Mar 13, 2025
  2. added theissue type on Mar 13, 2025
  3. added
    hackathon
    on Mar 13, 2025
  4. vagechirkov commented on Mar 17, 2025

    @vagechirkov
    Collaborator

    Hi, happy to work on it 🙂

  5. self-assigned this
    on Mar 17, 2025
  6. janfb commented on Jan 21, 2026

    @janfb
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

hackathontests

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions