Skip to content

Commit

Permalink
[Truffle] Name the mspec reports to make it easier to track in a brow…
Browse files Browse the repository at this point in the history
…ser.
  • Loading branch information
nirvdrum committed Feb 25, 2015
1 parent c149655 commit 8217c7d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
5 changes: 4 additions & 1 deletion spec/truffle/buildTestReports.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
</description>

<target name="gen">
<property name="reportTitle" value="Spec Results"/>
<property name="genReportDir" location="target/mspec-html-report"/>
<delete dir="${genReportDir}"/>
<mkdir dir="${genReportDir}"/>
<junitreport todir="${genReportDir}">
<fileset dir="target/mspec-results">
<include name="**/TEST-*.xml"/>
</fileset>
<report format="frames" styledir="${basedir}/../spec/truffle" todir="${genReportDir}/html"/>
<report format="frames" styledir="${basedir}/../spec/truffle" todir="${genReportDir}/html">
<param name="TITLE" expression="${reportTitle}" />
</report>
</junitreport>
</target>
</project>
Expand Down
18 changes: 15 additions & 3 deletions test/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ def truffle_spec_config(spec_type, generate_report)
execute_goals( 'run',
:id => 'junit-report-generation',
:phase => 'test',
:configuration => [ xml( '<target><ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" /></target>' ) ] )
:configuration => [ xml(
'<target>' +
'<property name="reportTitle" value="Language Spec Report" />' +
'<ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" />' +
'</target>' ) ] )
end

end
Expand All @@ -279,7 +283,11 @@ def truffle_spec_config(spec_type, generate_report)
execute_goals( 'run',
:id => 'junit-report-generation',
:phase => 'test',
:configuration => [ xml( '<target><ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" /></target>' ) ] )
:configuration => [ xml(
'<target>' +
'<property name="reportTitle" value="Core Spec Report" />' +
'<ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" />' +
'</target>' ) ] )
end

end
Expand All @@ -297,7 +305,11 @@ def truffle_spec_config(spec_type, generate_report)
execute_goals( 'run',
:id => 'junit-report-generation',
:phase => 'test',
:configuration => [ xml( '<target><ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" /></target>' ) ] )
:configuration => [ xml(
'<target>' +
'<property name="reportTitle" value="Stdlib Spec Report" />' +
'<ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" />' +
'</target>' ) ] )
end

end
Expand Down
3 changes: 3 additions & 0 deletions test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@
</goals>
<configuration>
<target>
<property name="reportTitle" value="Language Spec Report" />
<ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" />
</target>
</configuration>
Expand Down Expand Up @@ -909,6 +910,7 @@
</goals>
<configuration>
<target>
<property name="reportTitle" value="Core Spec Report" />
<ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" />
</target>
</configuration>
Expand Down Expand Up @@ -975,6 +977,7 @@
</goals>
<configuration>
<target>
<property name="reportTitle" value="Stdlib Spec Report" />
<ant antfile="${basedir}/../spec/truffle/buildTestReports.xml" />
</target>
</configuration>
Expand Down

0 comments on commit 8217c7d

Please sign in to comment.