You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #[ignore] attribute is not the most common to use in Rust test suites but it is still part of the way the language handles testing and is very convenient when e.g. developing a system that shouldn't have all validation tests applied to it yet, or when some tests should only sometimes be run. ( This can be preferable to diffing over a thousand-line test to "comment it out". )
Currently, annotating something with both #[pg_test] and #[ignore] most test-related attributes, because it generates a new test with a different name, means that new test is built and run by the PGX framework without attention to the proper results.
Ideally, PGX would respect the annotation.
EDIT: There's more than one attribute it should respect, actually.
#[ignore]
#[should_panic]
The text was updated successfully, but these errors were encountered:
workingjubilee
changed the title
#[pg_test] does not respect #[ignore]#[pg_test] does not respect #[ignore] or other test attributes
Jun 21, 2022
The
#[ignore]
attribute is not the most common to use in Rust test suites but it is still part of the way the language handles testing and is very convenient when e.g. developing a system that shouldn't have all validation tests applied to it yet, or when some tests should only sometimes be run. ( This can be preferable to diffing over a thousand-line test to "comment it out". )Currently, annotating something with both
#[pg_test]
andmost test-related attributes, because it generates a new test with a different name, means that new test is built and run by the PGX framework without attention to the proper results.#[ignore]
Ideally, PGX would respect the annotation.
EDIT: There's more than one attribute it should respect, actually.
#[ignore]
#[should_panic]
The text was updated successfully, but these errors were encountered: