Skip to content

Commit 2e234cb

Browse files
committed
instrument all dll for sample project
update package
1 parent 9ef09f0 commit 2e234cb

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

dotnet_3/em/embedded/rest/SampleProjectDriver/EmbeddedEvoMasterController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void Main(string[] args) {
4848

4949
public override List<AuthenticationDto> GetInfoForAuthentication() => null;
5050

51-
public override string GetPackagePrefixesToCover() => "SampleProjectDriver.API";
51+
public override string GetPackagePrefixesToCover() => "SampleProject.";
5252

5353
public override OutputFormat GetPreferredOutputFormat() => OutputFormat.CSHARP_XUNIT;
5454

dotnet_3/em/embedded/rest/SampleProjectDriver/SampleProjectDriver.csproj

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@
3131
<Sut Include="SampleProject.API.dll"/>
3232
<!--Do not change the \ to / as it may lead to error on Windows, just change the substring after the \-->
3333
<SutPath Include="$(ProjectDir)bin-temp\SampleProject.API.dll"/>
34+
35+
<Application Include="SampleProject.Application.dll"/>
36+
<ApplicationPath Include="$(ProjectDir)bin-temp\SampleProject.Application.dll"/>
37+
38+
<Domain Include="SampleProject.Domain.dll"/>
39+
<DomainPath Include="$(ProjectDir)bin-temp\SampleProject.Domain.dll"/>
40+
41+
<Infrastructure Include="SampleProject.Infrastructure.dll"/>
42+
<InfrastructurePath Include="$(ProjectDir)bin-temp\SampleProject.Infrastructure.dll"/>
43+
3444
<CurrentRuntimeConfig Include="$(OutputPath)sampleproject-evomaster-runner.runtimeconfig.json"/>
3545

3646
<!-- Don't need to touch these two lines -->
@@ -51,6 +61,15 @@
5161
<Exec Command="cd $(OutputPath)
5262
dotnet EvoMaster.Instrumentation.dll @(Sut) @(TempDirectory)"/>
5363

64+
<Exec Command="cd $(OutputPath)
65+
dotnet EvoMaster.Instrumentation.dll @(Application) @(TempDirectory)"/>
66+
67+
<Exec Command="cd $(OutputPath)
68+
dotnet EvoMaster.Instrumentation.dll @(Domain) @(TempDirectory)"/>
69+
70+
<Exec Command="cd $(OutputPath)
71+
dotnet EvoMaster.Instrumentation.dll @(Infrastructure) @(TempDirectory)"/>
72+
5473
</Target>
5574

5675

@@ -61,6 +80,15 @@
6180

6281
<Exec Command="cp @(SutPath) $(OutputPath)" Condition="$(OS.Contains('Unix'))"/>
6382
<Exec Command="copy @(SutPath) $(OutputPath)" Condition="$(OS.Contains('Windows'))"/>
83+
84+
<Exec Command="cp @(ApplicationPath) $(OutputPath)" Condition="$(OS.Contains('Unix'))"/>
85+
<Exec Command="copy @(ApplicationPath) $(OutputPath)" Condition="$(OS.Contains('Windows'))"/>
86+
87+
<Exec Command="cp @(DomainPath) $(OutputPath)" Condition="$(OS.Contains('Unix'))"/>
88+
<Exec Command="copy @(DomainPath) $(OutputPath)" Condition="$(OS.Contains('Windows'))"/>
89+
90+
<Exec Command="cp @(InfrastructurePath) $(OutputPath)" Condition="$(OS.Contains('Unix'))"/>
91+
<Exec Command="copy @(InfrastructurePath) $(OutputPath)" Condition="$(OS.Contains('Windows'))"/>
6492
</Target>
6593

6694
</Project>

0 commit comments

Comments
 (0)