Skip to content

#[test] attribute doesn't work correctly if used in front of #[datatest::..] #5

@idubrov

Description

@idubrov

Currently, the way #[test] is handled is proc macro deletes it when processing datatest attribute.

There are two reason #[test] attribute is desirable:

  1. Better integration with IDEs which don't know about #[datatest], but can handle #[test] (for example, allow running test by clicking on it). I use IntelliJ as a test bed 😛
  2. Differentiation between test tests and bench tests.

The issue is that if #[test] goes first, it will be handled by Rust built-in test harness, which is undesirable. Need to figure out a way to disable that -- potentially, #4 will solve that, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions