Test the rmatch strategy: !S::Suite contents: - Basic test suite: !S::Suite attributes: !S::RMatch test: &basic_stub a: !S::Stub returned_value: b: - c: d - e: very_long_one g: h contents: - Simple good test: match: - / - /a - /a/b - /// - /a/b/c - /a/b/c/d - /a/b/e/very_long_one - /a/b/e/very_.*_one - /a/g - /a/g/h dont_match: - /c - /a/b/c/d/e - /////// - /a/gh - Simple bad test 1: weight: -1 match: - / - /a/b/c/d/e - /a/b - Simple bad test 2: weight: -1 dont_match: - /c - /a/b/c/d - /a/b/c/d/e - Bootstrapped test suite: !S::Suite contents: - good test 1: !S::RMatch test: x: !S::RMatch test: *basic_stub match: - /a/b/e/very_long_one - /a/b/e/very_.*_one - /a/g dont_match: - /c - /a/b/c/d/e dont_match: - //some_wanted_paths_are_missing - //some_unwanted_paths_are_present - bad test 1: !S::RMatch test: x: !S::RMatch test: *basic_stub match: - / - /a/b/c/d/e - /a/b match: - //some_wanted_paths_are_missing/\/a\/b\/c\/d\/e dont_match: - //some_unwanted_paths_are_present - bad test 2: !S::RMatch test: x: !S::RMatch test: *basic_stub dont_match: - /c - /a/b/c/d - /a/b/c/d/e match: - //some_unwanted_paths_are_present/^\/a\/b\/c\/d$ dont_match: - //some_wanted_paths_are_missing - Simple status checker: !S::RMatch test: First output of cache simple.yml: !S::Stub returned_value: root: !S::Suite contents: - Relaunch 5 times this test with the cache feature to obtain a PASS: !S::Suite timeout: 1.2 attributes: strategy: Uttk::Strategies::Sleep delay: 1 contents: - first: !S::Sleep symbols: foo: a status: PASS - second: !S::Sleep symbols: foo: a/b status: ABORT reason: abort `second' with timeout 1.2s status: ABORT reason: abort `second' with timeout 1.2s status: FAIL match: - /F/r/c/R - /////contents/first/status/PASS - /////contents/second/status/ABORT - /////status/ABORT dont_match: - /////contents/(third|(four|fi|six)th)