Skip to content

Consider syntax for running hegel outside of test code #153

@Liam-DeVoe

Description

@Liam-DeVoe

#[hegel::test] currently automatically adds the #[test] annotation, which means it is conditionally compiled only under cfg(test). But there are valid reasons to run hegel outside of test code, and we should support this.

Options:

  • (1) Add a new #[hegel::main], which is identical to #[hegel::test] except it does not add #[test].
  • (2) Change #[hegel::test] to not add #[hegel::test] automatically.
  • (3) Add a parameter to #[hegel::test] which disables the automatic #[hegel::test] annotation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    opinions soughtundecided designs under discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions