Skip to content

Commit ed02f52

Browse files
liliankasemfabiocav
authored andcommitted
[in-proc8] Update deps json test for multi-target (#10097)
1 parent b3a9e09 commit ed02f52

File tree

3 files changed

+5168
-4
lines changed

3 files changed

+5168
-4
lines changed

test/WebJobs.Script.Tests/DependencyTests.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,16 @@ public class DependencyTests
4747
private readonly DependencyContextJsonReader _reader = new DependencyContextJsonReader();
4848
private readonly IEnumerable<string> _rids = DependencyHelper.GetRuntimeFallbacks();
4949

50-
[Fact]
51-
public void Verify_DepsJsonChanges()
50+
[Theory]
51+
[InlineData("net6.0")]
52+
[InlineData("net8.0")]
53+
public void Verify_DepsJsonChanges(string target)
5254
{
55+
string config = $"{Config}_{target}";
5356
string depsJsonFileName = "Microsoft.Azure.WebJobs.Script.WebHost.deps.json";
54-
string oldDepsJson = Path.GetFullPath(depsJsonFileName);
55-
string webhostBinPath = Path.Combine("..", "..", "WebJobs.Script.WebHost", Config);
57+
string oldDepsJsonPath = Path.Combine("DepsFiles", target, depsJsonFileName);
58+
string webhostBinPath = Path.Combine("..", "..", "WebJobs.Script.WebHost", config);
59+
string oldDepsJson = Path.GetFullPath(oldDepsJsonPath);
5660
string newDepsJson = Directory.GetFiles(Path.GetFullPath(webhostBinPath), depsJsonFileName, SearchOption.AllDirectories).FirstOrDefault();
5761

5862
Assert.True(File.Exists(oldDepsJson), $"{oldDepsJson} not found.");
File renamed without changes.

0 commit comments

Comments
 (0)