Skip to content

Commit 9c83480

Browse files
authored
Rider fixes (#1550)
* [utbot-rider] type shortName -> type fqnName * [utbot-rider] Rider plugin descrpition
1 parent 05990cf commit 9c83480

File tree

5 files changed

+16
-270
lines changed

5 files changed

+16
-270
lines changed

utbot-rider/src/dotnet/UtBot/UtBot.VSharp/VSharpMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private static GenerateResults GenerateImpl(GenerateArguments arguments)
3131
using var fs = File.OpenRead(assemblyPath);
3232
var ass = assemblyLoadContext.LoadFromStream(fs);
3333
var type = ass.GetType(descriptor.TypeName, throwOnError: false);
34-
if (type?.Name != descriptor.TypeName)
34+
if (type?.FullName != descriptor.TypeName)
3535
throw new InvalidDataException($"cannot find type - {descriptor.TypeName}");
3636
var methodInfo = type.GetMethod(descriptor.MethodName,
3737
BindingFlags.Instance

utbot-rider/src/dotnet/UtBot/UtBot/UnitTestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected override void Process(CSharpGeneratorContext context, IProgressIndicat
6060
var descriptors = new List<MethodDescriptor>();
6161
foreach (var inputElement in context.InputElements.WithProgress(progress, "Generating Unit tests")
6262
.OfType<GeneratorDeclaredElement<IMethod>>())
63-
descriptors.Add(new MethodDescriptor(inputElement.DeclaredElement.ShortName, typeElement.ShortName));
63+
descriptors.Add(new MethodDescriptor(inputElement.DeclaredElement.ShortName, typeElement.GetClrName().FullName));
6464

6565
var progressLifetimeDef = _lifetime.CreateNested();
6666
var indicator =
Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,24 @@
11
<!--suppress HttpUrlsUsage -->
22
<idea-plugin>
33

4-
<id>org.utbot.intellij.plugin.id</id>
4+
<id>org.utbot.rider.plugin.id</id>
55
<name>UnitTestBot</name>
66
<vendor>utbot.org</vendor>
77
<depends>com.intellij.modules.rider</depends>
88

9-
<!-- Minimum and maximum build of IDE compatible with the plugin -->
109
<description>
1110
<![CDATA[
12-
Generate <b>unit tests</b> with a single action!
13-
<br />
14-
<br />
15-
The <b>UTBot</b> engine goes through your code instructions and generates regression tests.
16-
<br />
17-
<br />
18-
The engine finds potential problems in your code:
19-
<br />
20-
<br />
21-
<ul>
22-
<li>exceptions</li>
23-
<li>hangs</li>
24-
<li>overflows</li>
25-
<li>and even native crashes</li>
26-
</ul>
27-
<br />
28-
They are not a surprise for you anymore. The engine will find the problems and generate tests for them.
29-
<br />
30-
<br />
31-
The engine carefully selects tests to maximize statement and branch coverage. Our credo is to <i>maximize test coverage and minimize tests number</i>.
32-
<br />
33-
<br />
34-
You can <a href="http://utbot.org">try the engine online</a> without installation.
35-
<br />
36-
<br />
37-
Got ideas? Let us know or become a contributor on our <a href="https://github.com/UnitTestBot/UTBotJava/blob/main/CONTRIBUTING.md">GitHub page</a>
38-
<br />
39-
<br />
40-
Found an issue? Please, submit <a href="https://github.com/UnitTestBot/UTBotJava/issues">it here</a>.
41-
]]>
42-
</description>
43-
<change-notes>
44-
<![CDATA[
45-
In this version we have implemented multiple features and improvements:
11+
Automated unit test generation tool for .NET assemblies.
4612
<ul>
47-
<li>Java 11 support.</li>
48-
<li>Smart Fuzzer significantly improves test generation results.</li>
49-
<li>Generated tests have become even more human-readable and user-friendly.</li>
50-
<li>We have enabled Mac OS X platform, give it a try.</li>
51-
<li>The UnitTestBot engine generates SARIF reports.</li>
52-
<li>We have polished plugin UX.</li>
53-
<li>Mocking support is enhanced.</li>
54-
<li>Java Streams, better Java Optional support, Java String support is improved, package-private constructors now are used for the test generation.</li>
13+
<li>Generating ready-to-use test cases with method bodies and inputs</li>
14+
<li>Maximizing branch coverage in regression suite while keeping the number of tests at minimum</li>
15+
<li>Capable to find deeply hidden code defects and express them as tests</li>
16+
<li>Applicable to LINQ syntax and complex generics</li>
17+
<li>Supporting .NET Framework, .NET Core, .NET 5, and .NET 6</li>
18+
<li>Powered by <a href="https://github.com/VSharp-team/VSharp">V#</a> – the custom symbolic execution engine</li>
5519
</ul>
56-
Discover everything mentioned above and much more in this release.
20+
Try UnitTestBot .NET <a href="https://www.utbot.org/demo">online demo</a> to see how it generates tests for your code in real time.
5721
]]>
58-
</change-notes>
22+
</description>
5923

6024
</idea-plugin>
Lines changed: 4 additions & 111 deletions
Loading

0 commit comments

Comments
 (0)