Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
b7376e1
Refactor Engine tests for a speeder pipeline
thomhurst Jun 1, 2025
123c9a4
Whoops
thomhurst Jun 1, 2025
67259ad
Update snaps
thomhurst Jun 1, 2025
77c9758
Print command
thomhurst Jun 1, 2025
85e4958
Fix
thomhurst Jun 1, 2025
e30004f
Fix
thomhurst Jun 1, 2025
294e843
WIP
thomhurst Jun 1, 2025
2c508be
Merge branch 'main' into feature/refactor-engine-tests
thomhurst Jun 2, 2025
8912536
Refactor Context objects
thomhurst Jun 2, 2025
f93f9e7
WIP
thomhurst Jun 2, 2025
40cdde8
WIP
thomhurst Jun 2, 2025
2ff72b0
WIP
thomhurst Jun 2, 2025
7258a0e
WIP
thomhurst Jun 2, 2025
1789357
Fixes
thomhurst Jun 2, 2025
9bf7157
Fixes
thomhurst Jun 2, 2025
b834e87
Fix
thomhurst Jun 2, 2025
a8d2b82
Fix
thomhurst Jun 2, 2025
a38c903
Fixes
thomhurst Jun 2, 2025
4095c5b
Fixes
thomhurst Jun 2, 2025
24f9153
Fixes
thomhurst Jun 2, 2025
b9bf46e
Fixes
thomhurst Jun 2, 2025
b7de66a
Fixes
thomhurst Jun 2, 2025
6873dd0
Fixes
thomhurst Jun 2, 2025
3deda82
Tweak
thomhurst Jun 2, 2025
a3b9110
Update WindowsOnlyAttribute.cs
thomhurst Jun 2, 2025
f1adb6d
Update snaps
thomhurst Jun 3, 2025
e9218e4
Merge branch 'main' into feature/refactor-contexts
thomhurst Jun 3, 2025
00ac473
WIP
thomhurst Jun 3, 2025
39caf82
Fix nested class data sources
thomhurst Jun 3, 2025
2dd5765
WIP
thomhurst Jun 3, 2025
b1c6283
WIP
thomhurst Jun 3, 2025
04e35e3
WIP
thomhurst Jun 3, 2025
c99ac96
WIP
thomhurst Jun 3, 2025
0065881
WIP
thomhurst Jun 3, 2025
d19de4d
WIP
thomhurst Jun 3, 2025
11cf56d
WIP
thomhurst Jun 3, 2025
8d9ad0d
Fixes
thomhurst Jun 3, 2025
72f5d6e
Fix ReturnValue tests
thomhurst Jun 4, 2025
c03b98a
WIP
thomhurst Jun 4, 2025
2408581
Fixes
thomhurst Jun 4, 2025
f0f88a1
Fix
thomhurst Jun 4, 2025
369b1b5
Fixes
thomhurst Jun 4, 2025
a68c67a
WIP
thomhurst Jun 4, 2025
f97cce7
Fix
thomhurst Jun 4, 2025
493d784
Fixes
thomhurst Jun 4, 2025
b8af095
Fixes
thomhurst Jun 4, 2025
09df420
Fixes
thomhurst Jun 4, 2025
72dfc6a
Fixes
thomhurst Jun 4, 2025
700a9d1
Fixes
thomhurst Jun 4, 2025
b306566
WIP
thomhurst Jun 4, 2025
7f1f8fd
Fixes
thomhurst Jun 4, 2025
fcaaea0
Merge branch 'main' into feature/refactor-contexts
thomhurst Jun 4, 2025
5011e5e
Fixes
thomhurst Jun 4, 2025
fd5f46f
WIP
thomhurst Jun 4, 2025
e353d1c
if statement
thomhurst Jun 4, 2025
c5a5513
PropertyInitializationGenerator
thomhurst Jun 4, 2025
ddbafa1
Fixes
thomhurst Jun 4, 2025
c26f501
Add common interface method for IDataSourceGeneratorAttribute.cs
thomhurst Jun 4, 2025
80a81e9
Fix?
thomhurst Jun 5, 2025
56f413c
Fix
thomhurst Jun 5, 2025
7b8d7d5
Fixes
thomhurst Jun 5, 2025
0c937a8
Update snaps
thomhurst Jun 5, 2025
a1cdb5a
Remove debug line
thomhurst Jun 5, 2025
fba974c
Remove logs
thomhurst Jun 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
127 changes: 125 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,132 @@
root = true

[*]
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[project.json]
indent_size = 2

# Generated code
[*{_AssemblyInfo.cs,.notsupported.cs}]
generated_code = true

# C# files
[*.cs]
# New line preferences
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_switch_labels = true
csharp_indent_labels = one_less_than_current

# Modifier preferences
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion

# avoid this. unless absolutely necessary
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion

# name all constant fields using PascalCase
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.required_modifiers = const
dotnet_naming_style.pascal_case_style.capitalization = pascal_case

# internal and private fields should be _camelCase
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case

# Code style defaults
csharp_using_directive_placement = outside_namespace:suggestion
dotnet_sort_system_directives_first = true
csharp_prefer_braces = true:silent
csharp_preserve_single_line_blocks = true:none
csharp_preserve_single_line_statements = false:none
csharp_prefer_static_local_function = true:suggestion
csharp_style_prefer_switch_expression = true:suggestion
dotnet_style_readonly_field = true:suggestion

# Expression-level preferences
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_auto_properties = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent

# Expression-bodied members
csharp_style_expression_bodied_methods = true:silent
csharp_style_expression_bodied_constructors = true:silent
csharp_style_expression_bodied_operators = true:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = true:silent

# Pattern matching
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion

# Null checking preferences
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion

# Space preferences
csharp_space_after_cast = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = do_not_ignore
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

[*.{cs,vb}]
dotnet_diagnostic.TUnitAssertions0003.severity=silent


# Verify
[*.{received,verified}.{txt}]
charset = "utf-8-bom"
Expand All @@ -12,4 +135,4 @@ indent_size = unset
indent_style = unset
insert_final_newline = false
tab_width = unset
trim_trailing_whitespace = false
trim_trailing_whitespace = false
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "context",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -728,6 +729,7 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "cancellationToken",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -818,11 +820,13 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "context",
Attributes = [],
ReflectionInfo = null!,
},
new global::TUnit.Core.SourceGeneratedParameterInformation<global::System.Threading.CancellationToken>
{
Name = "cancellationToken",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -997,6 +1001,7 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "cancellationToken",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -1086,6 +1091,7 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "testContext",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -1176,11 +1182,13 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "testContext",
Attributes = [],
ReflectionInfo = null!,
},
new global::TUnit.Core.SourceGeneratedParameterInformation<global::System.Threading.CancellationToken>
{
Name = "cancellationToken",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down
8 changes: 8 additions & 0 deletions TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "context",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -728,6 +729,7 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "cancellationToken",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -818,11 +820,13 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "context",
Attributes = [],
ReflectionInfo = null!,
},
new global::TUnit.Core.SourceGeneratedParameterInformation<global::System.Threading.CancellationToken>
{
Name = "cancellationToken",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -997,6 +1001,7 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "cancellationToken",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -1086,6 +1091,7 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "testContext",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -1176,11 +1182,13 @@ file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGene
{
Name = "testContext",
Attributes = [],
ReflectionInfo = null!,
},
new global::TUnit.Core.SourceGeneratedParameterInformation<global::System.Threading.CancellationToken>
{
Name = "cancellationToken",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.AfterTests.CleanupTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenera
{
Name = "arguments",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgsAsArrayTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -161,6 +162,7 @@ file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenera
{
Name = "arguments",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgsAsArrayTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -277,6 +279,7 @@ file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenera
{
Name = "arguments",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgsAsArrayTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -393,6 +396,7 @@ file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenera
{
Name = "arguments",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgsAsArrayTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -509,11 +513,13 @@ file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenera
{
Name = "i",
Attributes = [],
ReflectionInfo = null!,
},
new global::TUnit.Core.SourceGeneratedParameterInformation<global::System.Collections.Generic.IEnumerable<string>>
{
Name = "arguments",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgsAsArrayTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ file partial class ArgumentWithImplicitConverterTests : global::TUnit.Core.Inter
{
Name = "integer",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgumentWithImplicitConverterTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -145,6 +146,7 @@ file partial class ArgumentWithImplicitConverterTests : global::TUnit.Core.Inter
{
Name = "integer",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgumentWithImplicitConverterTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -238,6 +240,7 @@ file partial class ArgumentWithImplicitConverterTests : global::TUnit.Core.Inter
{
Name = "integer",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgumentWithImplicitConverterTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -361,6 +364,7 @@ file partial class ArgumentWithImplicitConverterTests : global::TUnit.Core.Inter
{
Name = "integer",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgumentWithImplicitConverterTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -454,6 +458,7 @@ file partial class ArgumentWithImplicitConverterTests : global::TUnit.Core.Inter
{
Name = "integer",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgumentWithImplicitConverterTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down Expand Up @@ -547,6 +552,7 @@ file partial class ArgumentWithImplicitConverterTests : global::TUnit.Core.Inter
{
Name = "integer",
Attributes = [],
ReflectionInfo = null!,
},
],
Class = global::TUnit.Core.SourceGeneratedClassInformation.GetOrAdd("global::TUnit.TestProject.ArgumentWithImplicitConverterTests", () => new global::TUnit.Core.SourceGeneratedClassInformation
Expand Down
Loading
Loading