diff --git a/extensions/positron-r/resources/testing/tree-sitter-r.wasm b/extensions/positron-r/resources/testing/tree-sitter-r.wasm old mode 100644 new mode 100755 index dc3c3f75c75..33e4d9c454d Binary files a/extensions/positron-r/resources/testing/tree-sitter-r.wasm and b/extensions/positron-r/resources/testing/tree-sitter-r.wasm differ diff --git a/extensions/positron-r/src/testing/parser.ts b/extensions/positron-r/src/testing/parser.ts index ff19c5a0e08..1d1ed16a8f7 100644 --- a/extensions/positron-r/src/testing/parser.ts +++ b/extensions/positron-r/src/testing/parser.ts @@ -93,43 +93,37 @@ async function findTests(uri: vscode.Uri) { (call function: [ (identifier) @_function.name - (namespace_get - function: (identifier) @_function.name - ) ] (#eq? @_function.name "test_that") - arguments: - (arguments - value: (string) @label - value: (_) + arguments: (arguments + (argument + value: (string) @label ) + ) ) @call (call function: [ (identifier) @_superfunction.name - (namespace_get - function: (identifier) @_superfunction.name - ) ] (#eq? @_superfunction.name "describe") - arguments: - (arguments + arguments: (arguments + (argument value: (string) @superlabel - value: (_ - (call + ) + (argument + value: (braced_expression + body: (call function: [ (identifier) @_function.name - (namespace_get - function: (identifier) @_function.name - ) ] (#eq? @_function.name "it") - arguments: - (arguments + arguments: (arguments + (argument value: (string) @label - value: (_) ) + ) ) @call ) ) + ) ) @supercall ` );