Skip to content

Data Providers get executed before setupBeforeClass #836

@vicb

Description

@vicb

The data providers get called before the static setupBeforeClass has been executed. If think it should be the other way around.

Use case:

  • We have a list of adapters. Some adapters are only supported on some environment (ie Linux vs Win),
  • I would like to initialize a list of supported adapters once and pass it to all the tests through a data provider,
  • The cleanest way I can imagine is to initialize a static property in setupBeforeClass and have the provider returns that property

The problem is that the property is not initialized when the provider gets called.

Version found: 3.7.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions