Skip to content

Releases: podnet-dev/PodNet.Analyzers.Testing

v1.5.3

Choose a tag to compare

@yugabe yugabe released this 24 Aug 08:57

Updated dependencies, moved System.Formats.Asn1 to top-level dependency to force non-vulnerable version.

v1.5.2

Choose a tag to compare

@yugabe yugabe released this 16 Aug 12:06

Added location information to diagnostic message when asserting diagnostics

v1.5.1

Choose a tag to compare

@yugabe yugabe released this 16 Aug 08:19

Added the additional texts as parameters to configuring the compilation for generator testing in EmbeddedTestCase

v1.5.0

Choose a tag to compare

@yugabe yugabe released this 15 Aug 18:13

New feature: TextDiff! This simple helper allows you to visualize line-by-line diffs. Used internally when comparing syntax trees and showing the assertion results.

v1.4.0

Choose a tag to compare

@yugabe yugabe released this 15 Aug 15:04

Added support to configure the generator driver and analyzer options

v1.3.1

Choose a tag to compare

@github-actions github-actions released this 15 Aug 12:21

Replace all underscores with dots in the retrieved property names of embedded test cases. This is to allow better mimicking of the file names the test cases are generated from, and by default, make those look more like files with extensions (eg, Component_razor wouldn't be automatically picked up by a generator if it was looking at extensions). Technically this is a behavioral breaking change, but you can simply pass a new optional parameter or override the property name-value accessor methods on the API to bypass/restore this behavior.

v1.3.0

Choose a tag to compare

@yugabe yugabe released this 14 Aug 12:01

Added support for Additional Texts to provide to generators

v1.2.2

Choose a tag to compare

@yugabe yugabe released this 09 Aug 13:47

Added a certain EmbeddedTestCase that helps with testing complex generator scenarios, including verifying the generated source trees, running scripts inside the generated compilation and running code fixes on them.

There is a small breaking change on PodCSharpCompilation. The first parameter became IEnumerable instead of IEnumerable to allow for greater control over the parameterization (namely, providing file paths to the trees was not possible). If you used the previous version, you can migrate by transforming your source texts to SyntaxTrees by:

sources.Select(s => CSharpSyntaxTree.ParseText(s));

v1.2.1

Choose a tag to compare

@yugabe yugabe released this 07 Aug 11:28

Added sponsorship information

v1.2.0

Choose a tag to compare

@yugabe yugabe released this 01 Aug 14:30

Now the included scripting engine includes by default the same references and namespaces that Visual Studio's Interactive C# REPL includes.