I have pretty complicated testing infrastructure that I scaffold before the test using gulp runner thus I can't use the build in debugger for unit tests in WebStorm v10.0.0.
During the test execution I generate the test coverage using karma-coverage that lands into reports/unit-test-coverage file.
Question: Can I import this file into WebStorm to see the coverage for my project?
No, there is currently no way to load coverage reports into IDE. Please follow WEB-10303
Related
I am using the Jasmine testing library to write my unit tests. I'd like to use ES6 syntax to write the tests and am also testing files written in ES6.
I want to use Chutzpah as the test runner (I am open to other suggestions). At a basic level, I just want my tests discovered and ran in the Visual Studio Test Explorer menu. I cannot do this with ES6 files as Chutzpah isn't 'discovering' them if there's any ES6 syntax in the Javascript files (no import/export use, just something like plain arrow functions).
Ideally, I do not want to use node, hence the Jasmine library with no dependencies. At the moment I'm able to run my tests using the Chrome browser as a test runner. I'm using the standalone Jasmine library.
I'd like for these tests and the process to be transportable across both ASP.NET Core and ASP.NET projects. Also, it would be a huge plus if I can have this automated into an Azure build process so the JavaScript unit tests run any time I make a code commit, instead of me manually running the tests before I commit.
Is this achievable? Completely new to testing and setting up this kind of process.
I see my only pain point here is that I need to just transpile my ES6 code into ES5 and I can use all the tools I've mentioned (Chutzpah, Jasmine). However, I'm not sure how to do this without adding a node configuration.
If anyone can so much as to just give me an example of a simple transpilation process from ES6 to ES5 (without node), even that would be a huge help.
We have junit based tests (maven project) and using EclEmma for code coverage. Able to get jUnit execution report and code coverage report from Eclipse. But I want to exectue unit tests from commandline and would like to get unit tests report and code coverage report. Code coverage report should show uncovered lines as well.
I was going through website (http://www.eclemma.org) and unable to find expected info.
Is there any commands available with or W/O tools?
EclEmma is based on JaCoCo. Among other integrations there are Maven plugin and Ant tasks for it. As you can see - all JaCoCo documentation can be found on the site of EclEmma that you mentioned.
So far I have been using eclipse to run testng tests, which requires me to code out a small program that includes a testng project; however this means every time I need to setup someone else's machine I have to pass alone the source codes so that they can run on their own eclipse.
I am sure it is not the best practice as when I was doing it in C#, I can build a .dll file to be imported in nunit's UI and I can execute the test from the nunit's UI. In this case I will just need to feed new users with the .jar or w/e file and tell them to use that UI tool to execute the tests. My questions fall below:
1) Are there any equivalent of nunit UI's for testng?
2) If so, how can I generate a .jar or w/e file of the testng project?
I'm in the process of building a Carbon Archive using the new WSO2 Developer Studio. I'm trying to work out how I can wrap the components (Sequences/Proxies etc) in JUnit tests. These tests will need to run as part of a CI build process (Jenkins) in order to detect errors with any modified code. I've done some research and can't seem to find anything that immediately stands out on how to achieve this. I did find this link https://wso2.org/jira/browse/TOOLS-855
which suggests that it hasn't yet been implemented. Can anyone confirm when this will be implemented or if there is any way at present to achieve this?
There is currently no straight forward way to implement this scenario and this feature will be supported in a future version.
One mechanism i can think is that, add a separate Test module as a part of the build which executes after building C-Apps.
So what happens in here is that, first Jenkins produce the CAR file for C-Apps. Then Maven start executing the JUnit test suite. Before the execution of Test Suite, you can configure maven to copy the CAR files to Servers and start up server. Then execute the Test Cases against the started up server.
This way you can deploy the new CAR files in your Carbon Server and execute the tests against the new configuration in the Server.
Thanks and Regards,
Harshana
In my environment developers use lcov from command line when working with source code's module tests.
I would like to know if there is a way to easily add reports from lcov to Hudson's builds? I would ease and automate the whole procedure of gathering test source code coverage.
If you are looking to publish the generated HTML reports along with your job/builds, have a look at the htmlpublisher plugin: http://wiki.hudson-ci.org/display/HUDSON/HTML+Publisher+Plugin
This allows you to specify multiple html directories and index files to be made accessible from the job or build page.
Have a look at the xUnit Plugin. I found the info in this thread. It has more information for using Hudson to build cpp projects.