[][src]Attribute Macro test_generator::test_resources


Macro generating test-functions, invoking the fn for each item matching the resource-pattern.

The resource-pattern must not expand to empty list, otherwise an error is raised. The generated test-functions is aregular tests, being compiled by the rust-compiler; and being executed in parallel by the test-framework.

mod tests {
  extern crate test_generator;

  fn verify_resource(resource: &str) { assert!(std::path::Path::new(resource).exists()); }