I would like to know if the unity test framework(http://www.throwtheswitch.org/unity) is compatible with sonarqube.
I have to use Sonarqube as a static code analysis tool for my C project and unit test created using the unity test framework.
Is it possible to implement?
What problems should be taken care of before implementation?
Any resources regarding this will be helpful.
Thanks and regards
I have written unit test code and running it using makefile. Now I wish to integrate Sonarqube on some git repository for the same. I would like to know where to start.
Related
I have doubts on how to implement test automation in the company where I am currently. I was wondering what workflow do you suggest?
The project I will be working on uses, on its back-end, the Java language. At first, I want to propose the use of Selenium Webdriver with Java, but some gaps remain:
How would I integrate with problem tracking tools? (Mantis or Jira)
A team member suggested using Python with Selenium Webdriver, is it interesting? (I am afraid)
When developers are committed to the QA environment, how would I do automated testing automatically?
Thank you in advance for your help!
With the evolution of AUT (Application under Test) the project is sure to scale up vertically and horizontally. Hence to maintain a healthy Test Coverage you have to set up an Automation Test Suite to validate the Regression Tests.
Mantis and Jira both can be integrated using either of the Selenium clients Java and Python on demand.
While for Java clients testng is a popular framework, for Python clients you can use the unittest framework.
I'm sure this is documented somewhere but I'm struggling to find what I'm after. I am developing a project in C (and explicitly not C++), and having had good experiences developing Java projects with JUnit for TDD, I'd like to take a similar approach for this new project.
Can anyone provide a walkthrough for creating and running a simple C project, and running a couple of unit tests on them within Eclipse CDT? I have Eclipse CDT (Luna) and the unit-testing plugin as described in the frequently referenced blog. Most of the guidance appears to be for C++.
FWIW I'm running on Windows 7 and compiling with MinGW GCC.
Have you given google test a try? Its technically a c++ library, but has very little overhead to test your functions. A c++ test project would easily be able to consume the library generated from your c code, so should be pretty easy.
For example, this is what a test would look like
#include "gtest/gtest.h"
#include "MyProject/myFunc.h
TEST (myFuncTest, calculate) {
EXPECT_EQ (18.0, myFunc_calculate (324.0));
}
You can find more details at IBM Developerworks on YouTube etc.
After a lot of research, I tried most of the libraries for C and C++ testing and the one that was the right one for me was the Acutest.
I have created a public repository with an example that also uses Github Actions and a makefile in order to accomplish Continuous Integration (CI) by compiling the code and the tests and running them on every push automaticly.
Repository Link : CPP_Unit_Testing
I am a newbie in Automation testing and have recently started learning selenium.
We have a Oracle PL/SQL Web tool kit based application. The Interface is used in Internet explorer.
I wanted to know if this UI can be automated with Selenium?
Thanks
Absolutely!
Generally speaking it does not really matter, what toolkit you use when testing with Selenium.
We also have a mod_plsql based application and use Selenium for our UI and integration tests.
The important decision is what environment and language to use when writing the tests. We started by using the Python bindings (https://selenium-python.readthedocs.org/en/latest/index.html) but now moved to the JavaScript WebDriverJS (https://code.google.com/p/selenium/wiki/WebDriverJs) running on NodeJS. The hard think with JavaScript that not only the tests are async but the driver itself as well.
I would start with the language you feel most comfortable with.
... and good luck: it's quite a challenge to write good tests in Selenium!
Is it possible to call scripts written in Silk4Net from Workbench? We are at the beginning of building an automation framework using SilkTest, and want to be able to express it to both our testers and developers.
No, unfortunately this isn't possible. You can call .NET Scripts from visual tests within the Workbench, but you can't call scripts between the various Silk Test clients currently.
Update: Reading your question again, it sounds like you just want some common code to share between scripts written in the Workbench, and scripts written in Silk4NET. If this is your goal, you could accomplish this by doing the following:
Create a new Class Library project in Visual Studio. It should target .NET 4.
Add a reference to SilkTest.Ntf to this project (this is the assembly that contains all of the automation classes used by Silk4NET and .NET scripts in the Workbench).
Put any common code into this assembly.
You can then reference this assembly from both your Silk4NET project and from .NET scripts in the Workbench.
I contacted Silk support today. Their reply is: "unfortunately there is no way to call the Silk4NET scripts in SilkTest Workbench. This is due to the fact that Silk4NETs scripts are built using the 4.5 .NET framework and Silk Test Workbenchs scripts are built using .NET 4.0. If you try to reference your assembly and call your methods and classes it results in compilation errors."
I have a solution with several Silverlight Test Projects. I would like to have some kind of script or tool with the ability of running all these test projects and generating some kind of report (any simple output will work)
I googled around for some time but I was unable to find any existent solution other than running the projects one by one from Visual Studio.
Has someone came across this situation before? Any idea on how to implement such a tool?
Regards
If you need automated testing then Test Manager is a tool from Microsoft. http://www.microsoft.com/visualstudio/en-us/products/2010-editions/test-professional/overview
http://msdn.microsoft.com/en-us/library/bb385901.aspx
and use with silverlight
http://jugalpanchal.blogspot.com/2011/09/configure-test-manager-for-silverlight.html
Use StatLight! http://statlight.codeplex.com It's a Silverlight Test Project runner exe that you can invoke from the cmdline. Its great and can be integrated into TFS Workflows as well as Msbuild.