Replies: 4 comments 3 replies
-
This is implicitly available through the
The times are just recorded as-is; any post-processing would be for the end-user to define. |
Beta Was this translation helpful? Give feedback.
-
I've tried it both with a -c and without the -c switch and I can't tell where the timing is within the xml when the -c is used. altcover.exe -c -s=Scrpt.Tests -s=nunit.framework -s=NUnit3.TestAdapter --sn=c:\projects\scrpt\scrptKey.snk -- "c:\Program files (x86)\NUnit.org\nunit-console\nunit3-console.exe" scrpt.tests.dll --stoponerror The output is the opencover format and I use nunit3 as the test runner for this .Net framework 4.8 project. Any ideas of what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
-
Looks like three problems in that example
to point the unit tests at the defaulted location of the instrumented assembly, or the
to copy out and then instrument back
Timing information (along with summary data and other derived quantities) is handled in the post-processing part of the collect ("runner") stage. That would finally be something like
to fill in the XML report, which should then contain data like <Method visited="true" cyclomaticComplexity="1" nPathComplexity="0" sequenceCoverage="100" branchCoverage="0" isConstructor="false" isStatic="true" isGetter="false" isSetter="false" crapScore="1">
<Summary numSequencePoints="1" visitedSequencePoints="1" numBranchPoints="1" visitedBranchPoints="0" sequenceCoverage="100" branchCoverage="0" maxCyclomaticComplexity="1" minCyclomaticComplexity="1" visitedClasses="0" numClasses="0" visitedMethods="1" numMethods="1" minCrapScore="1" maxCrapScore="1" />
<MetadataToken>100663362</MetadataToken>
<Name>AltCover.PointVisit AltCover.PointVisit::Create()</Name>
<FileRef uid="2" />
<SequencePoints>
<SequencePoint vc="49" uspid="2" ordinal="0" offset="0" sl="68" sc="37" el="68" ec="75" bec="0" bev="0" fileid="2">
<Times>
<Time time="638192380986820000" vc="1" />
<Time time="638192380986830000" vc="1" />
<Time time="638192380986840000" vc="1" />
<Time time="638192380988680000" vc="1" />
... |
Beta Was this translation helpful? Give feedback.
-
My pleasure. Glad to be of service. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add timing information for each method in the users code?
Not asking for each line, that would be too much, but since the instrumentation intercepts each call, how hard would it be to add a timing option as well?
Thanks,
Herb
Beta Was this translation helpful? Give feedback.
All reactions