Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Use testing setup/teardown to load things like DEGREE or Randomness #685

@CPerezz

Description

@CPerezz

Instead of doing this on each test, why don't we use a crate like: https://github.com/markhildreth/test-context to do test setup/teardown?

Originally posted by @CPerezz in #654 (comment)

The usage of testing setup/teardown is nothing new at all and we could reduce quite a lot the amount of code that we have and will have in the future in all the async tests we're writing.

My suggestion of the test-context crate is due to the fact that it only requires derive macros (is easy to use) and also will significantly simplify the randomness sharing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-designType: Discussion over API/implementation design and/or research associatedT-refactorType: cleanup/refactorT-testType: test improvementscrate-integration-testsIssues related to the integration-tests workspace member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions