Skip to content

Conversation

@reza0310
Copy link

@reza0310 reza0310 commented Nov 13, 2025

Changed the tests' csprojs (for it to run as written in the xunit documentation).
Made a few scripts to use the CLI, GUI and run the tests in a shell.
I made those changes to enable myself any posix user to run our projects.
I executed all of the scripts and they worked (even with args for the CLI one) without printing any unnecessary information.

Resolve #190 (just partially, merging this PR shouldn't close the issue)

I have read the contributing guidelines, I agree to following them and I agree to the Developer's Certificate of Origin 1.1.

@reza0310 reza0310 marked this pull request as draft November 13, 2025 15:59
Copy link
Collaborator

@nimrof nimrof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont understand the need for the .sh files
Is that for development or normal use?

The nuget updates are very welcome


<ItemGroup>
<Using Include="Xunit" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this is moved so please move back so every package is in the same group, but everything else looks good

<TargetFrameworks Condition="'$(BuildNet8)' == 'true'">net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net8.0</TargetFrameworks>
<OutputType>Library</OutputType>
<Nullable>enable</Nullable>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this breaks the CI build on .net framwork 4.8.1

</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="xunit.v3" Version="3.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be a good idea if it works in the CI and all we needed is included in the new nuget👍

@@ -0,0 +1,3 @@
#!/bin/sh

dotnet run --project EDSEditorGUI2 --framework net8.0 --property WarningLevel=0 "$@"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dotnet run --project EDSEditorGUI2 --framework net8.0 --property WarningLevel=0 "$@"
dotnet run --project EDSEditorGUI2 --property WarningLevel=0 "$@"

I did not need --framework, its only needed if project uses multiple .net versions

<PackageReference Include="xunit.v3" Version="3.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@@ -1,18 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="xunit.v3" Version="3.2.0" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using xunit.v3 is a good idea, but we need to get it through the CI first to see if it works for all .net versions

@@ -0,0 +1,3 @@
#!/bin/sh

dotnet run --project EDSEditorGUI2 --framework net8.0 --property WarningLevel=0 "$@"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dotnet run --project EDSEditorGUI2 --framework net8.0 --property WarningLevel=0 "$@"
dotnet run --project EDSEditorGUI2 --property WarningLevel=0 "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plans for a future Linux release

2 participants