#[test]
Expand description
Alias for googletest::gtest
.
Generally, prefer using #[gtest]
to mark googletest-based tests.
Use #[test]
instead of #[gtest]
to satisfy compatibility
requirements. For example, the rstest crate can be composed with other test
attributes but it requires the attribute to be named test
.
ⓘ
#[rstest]
#[googletest::test]
fn rstest_with_googletest() -> Result<()> {
verify_that!(1, eq(1))
}