Skip to content

Constructor params for test fixtures #1

@robryk

Description

@robryk

Currently test fixtures are constructed using parameterless constructor, which makes passing any parameters inside onerous. Everything in the call chain between rl::simulate() and call to constructor is templated on test fixture type, so it should be possible to template it on constructor parameters, too, and pass them along.

Passing mutable parameters would be obviously a bad idea, and it's impossible to detect that automagically. Perhaps we could warn in some common cases?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions