CaptainToTo
CaptainToTo
CC#
Created by CaptainToTo on 2/23/2025 in #help
✅ Automated Testing Network Code
This is partially a general programming question too. I'm currently making a video game netcode framework, and wanted to start automating tests that use the full framework (integration tests?) by starting a server and having multiple clients join. Is there something in the c#/.net ecosystem that I can use for this, and is there a common way to set this kind of test up? My current plan is to create a dummy server and client program that each run through a bunch of test cases, and have those started with a bash script. But beyond that I'm not really sure what to do.
12 replies
CC#
Created by CaptainToTo on 11/10/2024 in #help
✅ Include Source Generator With Library
I created a source generator for a framework I'm making. I'm trying to make the include tree look like this:
Generator -> Framework -> Application
^ ^
Generator applied to
both framework & application
Generator -> Framework -> Application
^ ^
Generator applied to
both framework & application
I'm including each like this:
application csproj:
<ProjectReference Include="../Framework/Framework.csproj" />
application csproj:
<ProjectReference Include="../Framework/Framework.csproj" />
framework csproj:
<ProjectReference Include="../Generator/Generator.csproj" OutputItemType="analyzer" ReferenceOutputAssembly="false" />
framework csproj:
<ProjectReference Include="../Generator/Generator.csproj" OutputItemType="analyzer" ReferenceOutputAssembly="false" />
generator csproj:
<None Include="$(OutputPath)/netver/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
generator csproj:
<None Include="$(OutputPath)/netver/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
rn the generator is only being applied to the framework. I've been looking all over to figure out how to get it to also apply to the application, but I can't find anything that works. Any suggestions would be super helpful.
3 replies