add ide related properties
This commit is contained in:
@@ -1,27 +1,42 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace SharpIDE.Application.Features.Testing.Client.Dtos;
|
namespace SharpIDE.Application.Features.Testing.Client.Dtos;
|
||||||
|
|
||||||
public sealed record TestNodeUpdate
|
public sealed record TestNodeUpdate
|
||||||
(
|
(
|
||||||
[property: JsonProperty("node")]
|
[property: JsonProperty("node")]
|
||||||
TestNode Node,
|
TestNode Node,
|
||||||
|
|
||||||
[property: JsonProperty("parent")]
|
[property: JsonProperty("parent")]
|
||||||
string ParentUid);
|
string ParentUid);
|
||||||
|
|
||||||
|
// https://github.com/microsoft/testfx/blob/main/docs/mstest-runner-protocol/003-protocol-ide-integration-extensions.md
|
||||||
public sealed record TestNode
|
public sealed record TestNode
|
||||||
(
|
(
|
||||||
[property: JsonProperty("uid")]
|
[property: JsonProperty("uid")]
|
||||||
string Uid,
|
string Uid,
|
||||||
|
|
||||||
[property: JsonProperty("display-name")]
|
[property: JsonProperty("display-name")]
|
||||||
string DisplayName,
|
string DisplayName,
|
||||||
|
|
||||||
[property: JsonProperty("node-type")]
|
[property: JsonProperty("node-type")]
|
||||||
string NodeType,
|
string NodeType,
|
||||||
|
|
||||||
|
[property: JsonProperty("execution-state")]
|
||||||
|
string ExecutionState,
|
||||||
|
|
||||||
|
[property: JsonProperty("location.file")]
|
||||||
|
string LocationFile,
|
||||||
|
|
||||||
|
[property: JsonProperty("location.type")] // Containing Class
|
||||||
|
string LocationType,
|
||||||
|
|
||||||
|
[property: JsonProperty("location.method")]
|
||||||
|
string LocationMethod,
|
||||||
|
|
||||||
|
[property: JsonProperty("location.line-start")]
|
||||||
|
int LocationLineStart,
|
||||||
|
|
||||||
|
[property: JsonProperty("location.line-end")]
|
||||||
|
int LocationLineEnd);
|
||||||
|
|
||||||
[property: JsonProperty("execution-state")]
|
|
||||||
string ExecutionState);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user