SONAR static code analysis for current changes only - static

Using Sonar how to do static code analysis only for current changes which i have done. for example my project 100 class/file and i made change to a class/file, now sonar has to run static code analysis only for that particular not for the entire project. how to achieve it?

While SonarQube is used to run the analysis of your entire project, SonarLint can be used to get a rapid feedback on your current development. SonarLint provides a SonarQube analyses in you favorite IDE for Java, Javascript, PHP or .Net.
Note that SonarLint for CLI also make you able to get in command line the difference between what is currently on your workspace and what has been analyzed during last SonarQube analysis.
Finally, some SonarQube plugins have been created to analyze pull requests for some SCM based on git:
* SonarQube Github plugin
* SonarQube Gitbucket plugin
* SonarQube GitBucket On Demand plugin

Related

Can I use MTM to execute my testcases that are wriiten in Selenium Java using Eclipse IDE

I have a application scenario where I am currently executing my test cases(written in selenium C#) using MTM, I want to know whether same can be achieved using selenium java from eclipse?
The same can be achieved using TFS 2015, in which we can create a new build of type ant/maven.Once the build has been created queueing the build would result in execution of test cases on pre configured agent machine.
While creating a build we need to provide build.xml (for ant) or pom.xml (for maven) which will contain all the details specific to the project and execute the same.
No
You can't use MTM to execute Java tests, however Microsoft is moving away form that model. This is likely because of this issue and they have already moved to using Team Build with VSTS & TFS 2015+ to execute all sorts of Functional Tests.
https://blogs.msdn.microsoft.com/dgartner/2016/02/23/running-selenium-tests-as-part-of-your-release-with-vsts-release-management/
They have a specific task for this and you can now associate all automated test results with Requirements for reporting without the need for Test Cases in tge middle.

How to minimize all custom java script files used in an AngularJs project?

It is possible to minimize all custom java script file Manually or Automatically ?
We are using TFS for source code management , Its also possible that auto minimize Java script file by source control system or build system , when deploy code in windows Azure system or web deploy?
Note - I am not using .net application its core AngularJs application and communication done by web-api hosted on other server.
It is possible, you could integrate a build script runner like Grunt with your TFS that could minify all your javascript files. When you use Grunt you can also run it manually when developing.
I would suggest you take some time to get familiar with build script runners like Grunt to see what the possibilities are.

Does Gatling provide a way to compare previously run tests

I've been running Gatling tests and I have a whole bunch of reports in the results folder.
For example I have a report for 200 requests per second and one for 400 requests per second.
Is there anyway to compare the reports against each other?
There's only the Jenkins plugin for now.
That's something we plan on providing as a commercial offer.
Gatling itself provides enterprise version called Gatling Frontline, which does support trends and history runs.
Another possibility is to use your simulation.log and process them using nuxeo gatling-report utility like this:
# check https://maven-eu.nuxeo.org/nexus/#nexus-search;quick~gatling-report for latest version, or build from source
wget 'https://maven-eu.nuxeo.org/nexus/service/local/repositories/public-releases/content/org/nuxeo/tools/gatling-report/4.0/gatling-report-4.0-capsule-fat.jar'
# do not create outputReportDirectory !
java -jar gatling-report-4.0-capsule-fat.jar results/complexscenario-20200618125705159/simulation.log results/complexscenario-20200617130307094/simulation.log -o outputReportDirectory
If you intend to generate trends during maven build, you can have a look at DennisRippinger gatling-reporter maven plugin, which encpsulates previously mentioned project.

Maven and JPA (Dali) project in Ecplise - Reverse Engineer

I want to create a JPA project in Eclipse but at the same time have it as a Maven project with the tipical maven source directory structure.
Can this somehow be done?
I just want to use the Dali feature to reverse engineer my database structure to JPA beans, but if I use a Maven only project I get a error that the project isn't a JPA project.
Is there some easier way to reverse engineer my beans?
This should be possible when you use the m2e Eclipse plug-in. The documentation is a bit scarce but it really works just like you know it from the Maven command line. I suggest to create projects with the "New Maven Project" wizard to get you started.
You should also be able to activate the JPA nature for the same project (one project can have any number of different "natures").
If it doesn't work, open a new question giving specific information like error messages.
PS: You will want m2e 1.200 and Eclipse 3.7.2.

How do I license the data visualization components (charting) for the Flex SDK on an automated builder server?

I have a professional license of Flex 3.3. This allows me to create applications using the data visualization components (charts) without watermarks. However, all of release builds (test, production, etc) occur on our build server.
The build server only has the Flex SDK installed (not full Flex Builder). As a result the SWFs compiled with this SDK contain watermarks on all the charts. How can I apply a Flex Builder Professional license to the build server to remove the watermakrs w/o installing Flex Builder?
My build environment is Flex SDK 3.3 + CruiseControl.NET + NAnt.
It took a bit of Google searching (more than usual) but I was able to find the answer. I needed to apply the Flex Builder Pro product name and serial number to the a flex-config.xml file in the /frameworks/ directory like so:
<licenses>
<license>
<product>flexbuilder3</product>
<serial-number>your serial number here</serial-number>
</license>
</licenses>
The advantage of this approach is that it works for any build environment, be it NAnt, Ant, or any other setup.
Came across same issue, but trying to use mxmlc commandline with the mxmlc -licenses.license option complained... the following worked though:
mxmlc -license=flexbuilder3,"XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"

Resources