-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When creating the default config, ignore directories with names that match the regex .*test.*. This should avoid instrumenting the majority of test functions. For those that do still get instrumented, have the test framework integration disable the wrapt wrapped on it, thereby disabling recording.
- Loading branch information
Showing
27 changed files
with
976 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: Simple | ||
record_test_cases: false | ||
packages: | ||
- path: simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: Simple | ||
record_test_cases: true | ||
packages: | ||
- path: simple | ||
- path: tests |
242 changes: 242 additions & 0 deletions
242
_appmap/test/data/pytest/expected/pytest-numpy1-no-test-cases.appmap.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
{ | ||
"version": "1.9", | ||
"metadata": { | ||
"language": { | ||
"name": "python" | ||
}, | ||
"client": { | ||
"name": "appmap", | ||
"url": "https://github.com/applandinc/appmap-python" | ||
}, | ||
"app": "Simple", | ||
"recorder": { | ||
"name": "pytest", | ||
"type": "tests" | ||
}, | ||
"source_location": "tests/test_simple.py:5", | ||
"name": "hello world", | ||
"feature": "Hello world", | ||
"test_status": "succeeded" | ||
}, | ||
"events": [ | ||
{ | ||
"defined_class": "simple.Simple", | ||
"method_id": "hello_world", | ||
"path": "simple.py", | ||
"lineno": 8, | ||
"static": false, | ||
"receiver": { | ||
"class": "simple.Simple", | ||
"kind": "req", | ||
"name": "self", | ||
"value": "<simple.Simple object at 0xabcdef>" | ||
}, | ||
"parameters": [], | ||
"id": 1, | ||
"event": "call", | ||
"thread_id": 1 | ||
}, | ||
{ | ||
"defined_class": "simple.Simple", | ||
"method_id": "hello", | ||
"path": "simple.py", | ||
"lineno": 2, | ||
"static": false, | ||
"receiver": { | ||
"class": "simple.Simple", | ||
"kind": "req", | ||
"name": "self", | ||
"value": "<simple.Simple object at 0xabcdef>" | ||
}, | ||
"parameters": [], | ||
"id": 2, | ||
"event": "call", | ||
"thread_id": 1 | ||
}, | ||
{ | ||
"return_value": { | ||
"class": "builtins.str", | ||
"value": "'Hello'" | ||
}, | ||
"parent_id": 2, | ||
"id": 3, | ||
"event": "return", | ||
"thread_id": 1 | ||
}, | ||
{ | ||
"defined_class": "simple.Simple", | ||
"method_id": "world", | ||
"path": "simple.py", | ||
"lineno": 5, | ||
"static": false, | ||
"receiver": { | ||
"class": "simple.Simple", | ||
"kind": "req", | ||
"name": "self", | ||
"value": "<simple.Simple object at 0xabcdef>" | ||
}, | ||
"parameters": [], | ||
"id": 4, | ||
"event": "call", | ||
"thread_id": 1 | ||
}, | ||
{ | ||
"return_value": { | ||
"class": "builtins.str", | ||
"value": "'world!'" | ||
}, | ||
"parent_id": 4, | ||
"id": 5, | ||
"event": "return", | ||
"thread_id": 1 | ||
}, | ||
{ | ||
"return_value": { | ||
"class": "builtins.str", | ||
"value": "'Hello world!'" | ||
}, | ||
"parent_id": 1, | ||
"id": 6, | ||
"event": "return", | ||
"thread_id": 1 | ||
}, | ||
{ | ||
"static": false, | ||
"receiver": { | ||
"kind": "req", | ||
"value": "<simple.Simple object at 0xabcdef>", | ||
"name": "self", | ||
"class": "simple.Simple" | ||
}, | ||
"parameters": [], | ||
"id": 7, | ||
"event": "call", | ||
"thread_id": 1, | ||
"defined_class": "simple.Simple", | ||
"method_id": "show_numpy_dict", | ||
"path": "simple.py", | ||
"lineno": 11 | ||
}, | ||
{ | ||
"static": false, | ||
"receiver": { | ||
"kind": "req", | ||
"value": "<simple.Simple object at 0xabcdef>", | ||
"name": "self", | ||
"class": "simple.Simple" | ||
}, | ||
"parameters": [ | ||
{ | ||
"kind": "req", | ||
"value": "{0: 'zero', 1: 'one'}", | ||
"name": "d", | ||
"class": "builtins.dict", | ||
"properties": [ | ||
{ | ||
"name": "0", | ||
"class": "builtins.str" | ||
}, | ||
{ | ||
"name": "1", | ||
"class": "builtins.str" | ||
} | ||
], | ||
"size": 2 | ||
} | ||
], | ||
"id": 8, | ||
"event": "call", | ||
"thread_id": 1, | ||
"defined_class": "simple.Simple", | ||
"method_id": "get_numpy_dict", | ||
"path": "simple.py", | ||
"lineno": 18 | ||
}, | ||
{ | ||
"return_value": { | ||
"value": "{0: 'zero', 1: 'one'}", | ||
"class": "builtins.dict", | ||
"properties": [ | ||
{ | ||
"name": "0", | ||
"class": "builtins.str" | ||
}, | ||
{ | ||
"name": "1", | ||
"class": "builtins.str" | ||
} | ||
], | ||
"size": 2 | ||
}, | ||
"parent_id": 8, | ||
"id": 9, | ||
"event": "return", | ||
"thread_id": 1 | ||
}, | ||
{ | ||
"return_value": { | ||
"value": "{0: 'zero', 1: 'one'}", | ||
"class": "builtins.dict", | ||
"properties": [ | ||
{ | ||
"name": "0", | ||
"class": "builtins.str" | ||
}, | ||
{ | ||
"name": "1", | ||
"class": "builtins.str" | ||
} | ||
], | ||
"size": 2 | ||
}, | ||
"parent_id": 7, | ||
"id": 10, | ||
"event": "return", | ||
"thread_id": 1 | ||
} | ||
], | ||
"classMap": [ | ||
{ | ||
"name": "simple", | ||
"type": "package", | ||
"children": [ | ||
{ | ||
"name": "Simple", | ||
"type": "class", | ||
"children": [ | ||
{ | ||
"name": "get_numpy_dict", | ||
"type": "function", | ||
"location": "simple.py:18", | ||
"static": false | ||
}, | ||
{ | ||
"name": "hello", | ||
"type": "function", | ||
"location": "simple.py:2", | ||
"static": false | ||
}, | ||
{ | ||
"name": "hello_world", | ||
"type": "function", | ||
"location": "simple.py:8", | ||
"static": false | ||
}, | ||
{ | ||
"name": "show_numpy_dict", | ||
"type": "function", | ||
"location": "simple.py:11", | ||
"static": false | ||
}, | ||
{ | ||
"name": "world", | ||
"type": "function", | ||
"location": "simple.py:5", | ||
"static": false | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.