Skip to content

Commit 4515adf

Browse files
committed
Make sanity test assertion resilient to repo changes
We were hardcoding the old repo name. This makes it future-proof if we ever rename or move it.
1 parent 3d66769 commit 4515adf

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/xAI.Tests/SanityChecks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public async Task IntegrationTestStreaming()
191191
1. What is today's date? (use get_date tool)
192192
2. What is the current price of Tesla (TSLA) stock? (use Yahoo news web search)
193193
3. Calculate the earnings that would be produced by compound interest to $5k at 4% annually for 5 years (use code interpreter)
194-
4. What is the latest release version of the devlooped/GrokClient repository? (use GitHub MCP tool)
194+
4. What is the latest release version of the {{ThisAssembly.Git.Url}} repository? (use GitHub MCP tool)
195195
196196
Respond with a JSON object in this exact format:
197197
{

src/xAI.Tests/xAI.Tests.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<PackageReference Include="coverlet.collector" Version="6.0.4" />
1313
<PackageReference Include="Devlooped.Extensions.AI" Version="1.0.0" />
1414
<PackageReference Include="Moq" Version="4.20.72" />
15+
<PackageReference Include="ThisAssembly.Git" Version="2.1.2">
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
</PackageReference>
1519
<PackageReference Include="xunit" Version="2.9.3" />
1620
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" PrivateAssets="all" />
1721
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
@@ -45,7 +49,7 @@
4549

4650
<ItemGroup>
4751
<None Update=".env" CopyToOutputDirectory="PreserveNewest" />
48-
<None Update="Content\**\*.*" CopyToOutputDirectory="PreserveNewest" />
52+
<None Update="Content\**\*.*;*.md" CopyToOutputDirectory="PreserveNewest" />
4953
<Content Update="Content\**\*.*" CopyToOutputDirectory="PreserveNewest" />
5054
<Content Include="*.json;*.ini;*.toml" Exclude="@(Content)" CopyToOutputDirectory="PreserveNewest" />
5155
</ItemGroup>

0 commit comments

Comments
 (0)