presentar_test

Attribute Macro presentar_test 

Source
#[presentar_test]
Expand description

Test attribute for Presentar widget and integration tests.

§Attributes

  • fixture = "path" - Load a fixture tar file before the test
  • timeout = 5000 - Set test timeout in milliseconds
  • should_panic - Expect the test to panic
  • ignore - Skip this test by default

§Example

#[presentar_test]
fn test_widget() {
    // Test code
}

#[presentar_test(fixture = "app.tar", timeout = 10000)]
fn test_with_fixture() {
    // Test with fixture
}