| 1 | { |
| 2 | "type": "object", |
| 3 | "properties": { |
| 4 | "traceback": { |
| 5 | "type": ["string", "null"], |
| 6 | "description": "The traceback for failing tests, if and only if ``status == \"failed\"``." |
| 7 | }, |
| 8 | "reproduction_decorator": { |
| 9 | "type": ["string", "null"], |
| 10 | "description": "The ``@reproduce_failure`` decorator string for failing tests, if and only if ``status == \"failed\"``." |
| 11 | }, |
| 12 | "predicates": { |
| 13 | "type": "object", |
| 14 | "description": "The number of times each |assume| and |@precondition| predicate was satisfied (``True``) and not satisfied (``False``).", |
| 15 | "additionalProperties": { |
| 16 | "type": "object", |
| 17 | "properties": { |
| 18 | "satisfied": { |
| 19 | "type": "integer", |
| 20 | "minimum": 0, |
| 21 | "description": "The number of times this predicate was satisfied (``True``)." |
| 22 | }, |
| 23 | "unsatisfied": { |
| 24 | "type": "integer", |
| 25 | "minimum": 0, |
| 26 | "description": "The number of times this predicate was not satisfied (``False``)." |
| 27 | } |
| 28 | }, |
| 29 | "required": ["satisfied", "unsatisfied"], |
| 30 | "additionalProperties": false |
| 31 | } |
| 32 | }, |
| 33 | "backend": { |
| 34 | "type": "object", |
| 35 | "description": "Backend-specific observations from |PrimitiveProvider.observe_test_case| and |PrimitiveProvider.observe_information_messages|." |
| 36 | }, |
| 37 | "sys.argv": { |
| 38 | "type": "array", |
| 39 | "items": {"type": "string"}, |
| 40 | "description": "The result of ``sys.argv``." |
| 41 | }, |
| 42 | "os.getpid()": { |
| 43 | "type": "integer", |
| 44 | "description": "The result of ``os.getpid()``." |
| 45 | }, |
| 46 | "imported_at": { |
| 47 | "type": "number", |
| 48 | "description": "The unix timestamp when Hypothesis was imported." |
| 49 | }, |
| 50 | "phase": { |
| 51 | "type": "string", |
| 52 | "description": "The Hypothesis |Phase| this test case was generated in." |
| 53 | }, |
| 54 | "data_status": { |
| 55 | "type": "number", |
| 56 | "enum": [0, 1, 2, 3], |
| 57 | "description": "The internal status of the ConjectureData for this test case. The values are as follows: ``Status.OVERRUN = 0``, ``Status.INVALID = 1``, ``Status.VALID = 2``, and ``Status.INTERESTING = 3``." |
| 58 | }, |
| 59 | "interesting_origin": { |
| 60 | "type": ["string", "null"], |
| 61 | "description": "The internal ``InterestingOrigin`` object for failing tests, if and only if ``status == \"failed\"``. The ``traceback`` string value is derived from this object." |
| 62 | } |
| 63 | }, |
| 64 | "required": ["traceback", "reproduction_decorator", "predicates", "backend", "sys.argv", "os.getpid()", "imported_at", "data_status", "interesting_origin"], |
| 65 | "additionalProperties": false |
| 66 | } |