I know how I can add 1 exclusion filter but, what if I want to exclude multiple projects at one? Do I repeat the "-" statement? or is it comma separated? Particularly, I'm trying to exclude Tests and Installer from the coverage calculation:
<property name="coverage.report.filter" value="+[${product}*]* -[${product}*Installer.Designer*]* -[${product}*Tests]* " />
Sorry, newbie to OpenCover :)
Thanks in advance!
If you type OpenCover.Console.exe on the command line I think you will see that it is accepts space separated filters. This is also detailed on the supplied documentation that should be installed with OpenCover - assuming you are using the download from GitHub.
The information is also available on the WIKI
Related
I have a feature file containing multiple scenarios, few of them are manual. When I run my scenarios I want to exclude Manual scenarios. How to exclude Manual scenarios using QAF BDD2?
Ex: Feature Hello
#channel.. #run
Scenario: Run this scenario
Given ...
When ..
Then..
#Manual
Scenario: Exclude this scenario
Given ...
When ..
Then..
When I run this, it picks all scenarios and skips the one with have #Manual tag saying no def found which is valid but I dont want this scenario to run and skip. I want to exclude this scenario, I tried adding exclude tags in config xml file like below it did not work.
<groups>
<run>
<exclude name="Manual"></exclude>
</run>
</groups>
it should work with qaf latest version. As alternate you also can try using meta-data filter providing exclude property instead of groups tag. For example:
<parameter name="exclude" value="{'groups': ['Manual']}" />
I have a payload that is repeating which is like below:-
<FinalTest xmlns:ser="com.test://http">
<Test>
</Test>
<Test>
</Test>
..
..
</FinalTest>
I have a sequence of steps that I to execute for each Test object.
Please let me know on how to use mule for each.
Note that is not limited to twice like above it can be any number of times
You can use Mule's ForEach routing processor.
You can make a collection of your objects and then use Foreach to Execute the sequesnce of steps for each of the Test objects.
More help at the following Mule documentation links.
http://www.mulesoft.org/documentation/display/current/Foreach
http://www.mulesoft.org/documentation/display/current/Foreach+Processing+and+Choice+Routing+Example
Hope this helps.
You first need to add Mule namespace manger in your flow since your XML have namespace
reference :- https://developer.mulesoft.com/docs/display/current/XML+Namespaces
Then you can use for each :- https://developer.mulesoft.com/docs/display/current/Foreach
and XPATH
reference :- http://blogs.mulesoft.com/mule-3-6-xml-xpath-xslt-xquery3/
When I open up a build definition I can see the arguments are split into sections with a number prefix e.g. 1. Basic, 2. Misc etc.
However, when I edit the xaml there is no indication as to where these categories are defined.
Can someone provide some guidance as to where they are located within the arguments list?
Here is a similar question except the poster has inquired about a different parameter based off the build settings which I believe is a different case than regular parameters.
Missing ProcessParameterMetadata in TFS DefaultTemplate.xaml: where is for e.g. Items to Build in the Required category
You can open the build template and edit the Metadata argument as shown in the picture below:
Then you can edit the category:
In the XML there is no category as standalone. You can define the category in the Process.Metadata section:
<this:Process.Metadata>
<mtbw:ProcessParameterMetadataCollection>
<mtbw:ProcessParameterMetadata Category="#300 Advanced" Description="Enable MSBuid Multi-proc to build your solutions' projects in parallel, when possible, using all available processors on the build server." DisplayName="MSBuild Multi-Proc" ParameterName="MSBuildMultiProc" />
....
</mtbw:ProcessParameterMetadataCollection>
</this:Process.Metadata>
This is to add new categorys but i dont know where the standard categories are.
Hope that helped you.
Chears
I have installed Jenkins for my projects. The automatic build and deployment is happening successfully.
I would like to get following data:
No. of classes with lines in the range 0-50
No. of classes with lines in the range 301-500
No. of classes with lines in the range 501-1000
No. of classes with lines > 1000 etc.
I'd like the same things for methods: Eg: No. of methods with lines in the range 0-50
How can I get this data?
Please let me know.
I suggest you use http://cloc.sourceforge.net/
You can then extract the data as SQL data import it in a H2 database (in-memory) to
group accordingly to your needs.
Perhaps more than you need, but have you looked at Sonar? (http://www.sonarsource.org/) It integrates with your build, and can provide the metrics you're looking for and a lot more besides.
There are several other useful and easy to use tools:
javancss: A Source Measurement Suite for Java http://www.kclee.de/clemens/java/javancss/
ckjm: Chidamber and Kemerer Java Metrics http://www.spinellis.gr/sw/ckjm/
Some relevant tools:
classycle - http://classycle.sourceforge.net/
jdepend - http://clarkware.com/software/JDepend.html
You can also use XRadar to aggregate all these report and get something called "Project health". XRadar also supports previously mentioned CLOC
I do not know if the issue is still relevant to you. The other responses do not address Jenkins. There are several plugins for Jenkins, such as http://www.dwheeler.com/sloccount/. After you install the plugin, you can retrieve code metrics via the Jenkins REST API.
I want to extract values defined in an item group collection of TFSBuild.proj file in a C# application during a build . Can someone give me an idea as to how this can be done.
"Extract" is a weird word to use here. If you're wanting to combine C# with MSBuild, you generally do that by creating an MSBuild Task. Tasks take inputs, which can be ItemGroups and they do stuff with the items in the group.