Skip to content

Commit 6b179df

Browse files
srsaggamDmitry-A
authored andcommitted
Enable gated check for mlnet.tests (dotnet#79)
* Added sequential grouping of columns * reverted the file * changed to new API of Text Loader * changed signature * added params for taking additional settings * changes to codegen params * refactoring of templates and fixing errors * added run-tests.proj and referred it in build.proj
1 parent 6cf388a commit 6b179df

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

build.proj

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494

9595
<Target Name="RunTests">
9696
<MSBuild Projects="src\test\run-tests.proj" Targets="RunTests" />
97+
<MSBuild Projects="src\mlnet.test\run-tests.proj" Targets="RunTests" />
9798
</Target>
9899

99100
<!-- Override CleanAllProjects from dir.traversal.targets and just remove the full BinDir -->

src/mlnet.Test/Directory.Build.props

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<Import Project="..\..\Directory.Build.props" />
3+
4+
<PropertyGroup>
5+
<VSTestLogger>trx</VSTestLogger>
6+
<VSTestResultsDirectory>$(OutputPath)</VSTestResultsDirectory>
7+
</PropertyGroup>
8+
9+
</Project>

src/mlnet.Test/run-tests.proj

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project>
2+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" />
3+
4+
<ItemGroup>
5+
<Project Include="$(MSBuildThisFileDirectory)**\*.csproj" />
6+
</ItemGroup>
7+
8+
<Target Name="RunTests">
9+
<Message Importance="High" Text="Running tests ..." />
10+
<MSBuild Targets="VSTest"
11+
Projects="@(Project)"
12+
Properties="VSTestNoBuild=true" />
13+
</Target>
14+
15+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
16+
17+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.traversal.targets))\dir.traversal.targets" />
18+
19+
</Project>

0 commit comments

Comments
 (0)