diff --git a/script/test b/script/test index 09cf9f83..066778b7 100755 --- a/script/test +++ b/script/test @@ -76,8 +76,8 @@ else fi if [[ "${mode}" == "debug" ]]; then - test_binary=$(cargo test --no-run --message-format=json 2> /dev/null | jq -rs '.[-1].filenames[0]') - lldb "${test_binary}" -- $top_level_filter + test_binary=$(cargo test --no-run --package=tree-sitter-cli --lib --message-format=json 2> /dev/null | jq -rs '.[-1].filenames[0]') + lldb "${test_binary}" -- "${top_level_filter}" else - cargo test --jobs 1 $top_level_filter -- --nocapture + cargo test --package=tree-sitter-cli --lib --jobs 1 $top_level_filter -- --nocapture fi