Skip to content

Commit

Permalink
Add namer tests to prism corpus
Browse files Browse the repository at this point in the history
And exclude failing tests
  • Loading branch information
egiurleo committed Dec 20, 2024
1 parent 1550c23 commit 8e19f2b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ pipeline_tests(
"testdata/rewriter/**/*.exp",
"testdata/local_vars/**/*.rb",
"testdata/local_vars/**/*.exp",
"testdata/namer/**/*.rb",
"testdata/namer/**/*.exp",
],
exclude = [
# Parser tests having to do with tree differences in invalid Ruby code; will address later
Expand All @@ -293,6 +295,29 @@ pipeline_tests(
"testdata/rewriter/prop.rb",
"testdata/rewriter/struct.rb",

# Failing namer tests to investigate
"testdata/namer/alias_cross_file__01.rb",
"testdata/namer/alias_cross_file__02.rb",
"testdata/namer/all_constant_redefinitions.rb",
"testdata/namer/arguments.rb",
"testdata/namer/class_alias_inside_method.rb",
"testdata/namer/class_and_alias.rb",
"testdata/namer/constant_in_block.rb",
"testdata/namer/constant_types.rb",
"testdata/namer/constants.rb",
"testdata/namer/fuzz_class_in_field.rb",
"testdata/namer/fuzz_repeated_kwarg.rb",
"testdata/namer/fuzz_type_template_overwrite.rb",
"testdata/namer/module_function.rb",
"testdata/namer/parameter_names.rb",
"testdata/namer/redefinition_method.rb",
"testdata/namer/type_alias_inside_method.rb",
"testdata/namer/type_alias_not_on_T.rb",
"testdata/namer/type_alias.rb",
"testdata/namer/type_member_inside_method.rb",
"testdata/namer/type_template_inside_method.rb",
"testdata/namer/yield.rb",

# Sorbets' parser incorrectly accepts invalid syntax
"testdata/desugar/pattern_matching_hash.rb", # See https://github.com/Shopify/sorbet/issues/362
],
Expand Down

0 comments on commit 8e19f2b

Please sign in to comment.