Questions tagged [unit-tests]

Use the unit-tests tag for questions concerning tools that help test "units" of source code, e.g., classes or files.

Filter by
Sorted by
Tagged with
21
votes
3answers
20k views

Standalone JUnit XML report viewer

I remember that I used a program for viewing JUnit XML reports two years ago, but I forgot their name and can't google it. Could you recommend me a simple standalone app (i.e. not IDE) for viewing ...
20
votes
3answers
6k views

Tool for code coverage of (unit tests in) C#

I am in the process of writing unit tests for someone else's code. Right now, I am just sort of looking through all the classes of the main code branch to see if I have written tests to cover all ...
10
votes
2answers
2k views

C++ unit testing framework [closed]

I would like to hear what is a recommended C++ unit testing framework or, in case there is not a single one, what is a generally accepted flowchart that can lead me while picking one.
6
votes
1answer
165 views

Which mocking frameworks allow zero changes to legacy code?

I am searching for a mocking framework for a large C++ project. I've tentatively chosen GoogleTest as the testing framework so I first looked at GoogleMocks. However, I then discovered TypeMock's ...
5
votes
2answers
452 views

C99 unit testing framework compatible with Visual Studio 2015+

Is there a unit testing framework for "plain C", which can easily be integrated with the Visual Studio Test Explorer? Since I would like to introduce unit testing to our firmware/embedded team in a ...
4
votes
2answers
114 views

Tools for measuring test coverage of VDHL code

I need to measure the code coverage of VHDL code. Especially the following metrics are interesting: Statement coverage Branch coverage MC/DC coverage Toggle coverage The only tool (of which I am ...
4
votes
3answers
82 views

Javascript unit testing framework

What unit testing framework should I choose for javascript development, if such a thing exists. It should ideally (in rough order of priority): facilitate the repeated testing of user interface ...
4
votes
3answers
188 views

Website testing / browser automation tools

I'm looking for a tool, that will automatically performs specified actions such as clicking on links, filling and submitting forms, and so on. I mean I write some kind of script with instructions and ...
3
votes
3answers
2k views

Good and free unit-testing alternatives to Telerik's JustMock

What are the few good and free unit-testing alternatives to Telerik JustMock library/tool for unit-testing in C#. Here, I wish to know alternative not just for JustMock lite but for paid JustMock ...
3
votes
1answer
75 views

What mocking framework do you suggest for C++ on a linux platform?

The company I work for recently added Linux to our work environment and we need a good unit testing framework for c++. We tried Gmock from google but it's not so user-friendly. I have done a little ...
3
votes
2answers
159 views

Creating a C++ Project to match an existing DLL interface

I have a DLL that exposes a number of functions and I'd like to make a duplicate DLL with the same name that exposes the exact same functions but with my own implementation of each function. In this ...
3
votes
2answers
622 views

Cross platform automated C++ unit-testing framework for GUI development

What unit testing framework should I choose for cross platform C++ development. Preferably (in order of requirements): facilitate the repeated testing of user interface elements in Qt (or other GUI ...
3
votes
1answer
80 views

Tool to generate JUnit skeleton code, usable with JPA, JAX, CDI etc

I've got a largish Java EE project in Eclipse Kepler, and going through New/Other/JUnit Test Case for each file is not really something I want to do. So, first I want to find a tool that will build ...
3
votes
0answers
37 views

When unit test fail, show the related file changes from git repo

Is there something that makes it possible to view the relevant file changes along with the unit tests that failed? So, like after a failed test notification × Test: Server startup test. Fail × ...
3
votes
0answers
53 views

Software, script or a tool to automate managing which tests to run

I have a batch file that lists all the test files I have and asks me which test I want to perform, like Test. [U]nit, [I]ntegration : i (user input) Integration. [A]ll, [2][U]serInteraction, [3][R]...
3
votes
0answers
33 views

Unit testing in visual studio for JavaScript

orginal question at https://stackoverflow.com/questions/22382025/unit-testing-in-visual-studio-for-javascript I am searching good tool for JavaScript unit testing. I am using visual studio as the IDE....
2
votes
2answers
99 views

Mocking frameworks for C/C++ on Linux

My team and I are looking for a mocking framework for C and C++ on Linux. We have a huge codebase that we want to test, so the most important thing for us is having a mocking framework that will allow ...
2
votes
1answer
47 views

Automated suggestion tool

After a long road with Randoop.NET as a unit test suggestion tool, my developing team has decided to upgrade to a commercial tool which will provide us a full unit testing framework for professional ...
2
votes
1answer
466 views

Continuous Testing Tool for IntelliJ 14

I'm using IntelliJ 14 and looking for a plugin / tool that will automatically run tests as and when they're updated. I've looking into both Fireworks and Infiniti, neither of which seem to work with ...
2
votes
1answer
22 views

Running unit tests automatically

In software development, we have code + unit tests. Sometimes I forget to the run unit tests, or maybe I'm too lazy to run them. I'm looking for a tool that runs unit tests automatically when I have ...
2
votes
1answer
24 views

Hosted Python code coverage which is cost-free for FOSS projects?

Context I'm developing an application in Python with PyQt and for the testing I'm using the unittest Python module together with QtTest The project is FOSS and is hosted on Github. I'm using ...
2
votes
1answer
35 views

Find out which unit test fails in dependency of another one

We have ~22.000 unit tests. Now, two of them fail when run together with other tests. They pass when run alone. I am now looking for an automated analysis to narrow down the tests to reproduce the ...
2
votes
2answers
72 views

Test automation tool for an Android app

Android monkey tool is great! With one line of script, it launch your app and perform automation tests: adb shell monkey -p my.greate.package + -c android.intent.category.LAUNCHER -s 123 --pct-touch ...
2
votes
1answer
60 views

Any tools to validate your code?

I'm working on a large, not-so-old codebase with ton of unit test. The code coverage is somewhat great, but I've noticed that there are many tests with no assert at all. Code changed and some tests' ...
2
votes
1answer
614 views

Tool to auto-generate mocks/stubs/dummies for unit test

My current employer doesn't do unit testing (shudder). In fact there is no host based testing at all; everything is tested (black box) on target. And none of it can be automated (the horror! the ...
2
votes
0answers
64 views

Free or affordable unit test for C (/ C++) with code parsing and stub generation

"Free" means gratis; "affordable" means up to $100. I am currently using Vectorcast at work, and would love to use something similar on my home coding projects (which tend to be C, but are ...
2
votes
0answers
9 views

How can I have builds fail if new code is below coverage threshold?

Is there any Java testing framework (preferably Jacoco and/or Sonar) that will allow teams with poor code coverage, to forgive the existing code base, but require new code to be above a threshold, (...
2
votes
0answers
76 views

Parameter value coverage for C++

I am strengthening my Jenkins build process and adding a few more checks. I just stumbled across Parameter value coverage, which alas only handles C# code. Is there anything similar for C / C++ ? ...
2
votes
0answers
21 views

Tool to tie implemented autotests with software requirements

Does anyone know of any tool that would let me tie autotests with software requirements and produce something like test coverage? ie. what requirements are covered with which tests, which requirements ...
1
vote
1answer
112 views

C++, C++/CLI,C#, WPF TDD, mocking

I'm new to TDD and BDD, My system flow is as following. WPF/C# MVVM layer with a button (don't really have only one) to open an image and run the image in an image processing pipeline. C++/CLI layer ...
1
vote
1answer
9 views

Unit-Test Generator

I have been requested to write a huge amount of tests on a C# project in .net 4.7.2. Doing in manually is taking me too much time and I find it really repetitive and monotonic. I am wandering if there ...
1
vote
1answer
14 views

Test framework for web views that depend on JS rendering?

I wonder if there is a good javascript test framework that I can use, similar to Selenium, to test my web views. I have a back-end which is done with bottle, mako and python and javascript with jquery ...
1
vote
0answers
9 views

An Open Source or paid tool to generate mock data for unit testing, performance testing and mocking production data

I am looking for a data generation tool that can generate large amounts of data with following requirements. Ability to configure type of data that needs to be generated -- Data has lot of ...
1
vote
0answers
15 views

Visual Studio Code Infinitest equivalent

If I want to do TDD, I can do it easily in eclipse using Infinitest and JUnit4. Now I need to use VS Code and I would like to have my tests running every time I change my code, like Infinitest does in ...
1
vote
0answers
25 views

What is the best system architecture testing tool? (especially in cloud environment)

I'm currently working on a project to automate the cloud environment setup using Infrastructure as Code (IaC). I'm planning on using tools such as ansible and terraform but I need to test if the cloud ...
1
vote
1answer
20 views

Python unittest gui (output through GUI)

Python's unittest framework is command line based. Instead of console output, I'd like to have GUI output. Specific task, that should be accomplishable: start all tests per button start single test ...
1
vote
0answers
19 views

Unit testing framework that supports hot reloading / hot reloading / live reloading / triggered restart / triggered execution?

So another words, I just save my code and it runs the unit tests automatically? I'm mainly looking for an API like this for Javascript, python, node.js, Ruby and Powershell.
1
vote
1answer
30 views

Is there a code coverage tool for Python 2.4?

My project is limited to python 2.4 due to, unfortunately, an essential third party library. I have a number of tests written using the unittest module. I would like to track test coverage. Is there a ...
1
vote
0answers
33 views

Code coverage tool for CuTest

I am using CuTest to do Unit testing for my project. We chose this framework as it is a light weight. how to check the code coverage using CuTest. I have a experience in using Bull eye code coverage ...
1
vote
0answers
15 views

Powerful and easy-to-setup mock framework for Java

I have implemented a Java class that performs calls to an interface that I will call "TheInterface". To unit test my program, I need a mock implementation of TheInterface that I can make my class ...
1
vote
0answers
27 views

Useful security key/crypto testing software

Would prefer open source. Open to commercial recommendations if you can explain why there is no other good option. Looking for software that can more or less black box test for strength and ...
1
vote
0answers
101 views

Regression testing tool?

I'm starting a scientific computing, command line project using source code that has no automated testing. The previous developer compared results by hand. Before I make changes, I want to set up some ...
1
vote
0answers
26 views

Is there an IQueryable testing suite?

I need to test various IQueryable providers are working correctly/show where they are limited. Is there an existing library of unit tests for all the different types of queries that can be generated?
1
vote
0answers
21 views

Tool which can be integrated with NUnit to control database transactions

We are using Selenium for UI testing with NUnit and having so much issues with DataBase state handling. However, we now want to do a database clean up, insert some data into x number of tables and ...
1
vote
1answer
68 views

Choosing an open source Continuous Delivery solution for programming education

In my Business Informatics Bachelor thesis I have chosen a topic, in which I have to set up a Continuous Delivery (that must be open source) server which students can use in their programming ...
0
votes
1answer
85 views

How to test the front end of a large software project [closed]

Scenario: I've a very big software project (.NET, C#, WPF). Now I want to develop a perfect test environment for it. At the moment I’m using some NUnit unit tests. Now I need a good plan to implement ...
0
votes
0answers
3 views

Framework for T-SQL unit testing

I am looking for a framework to do unit testing of T-SQL stored procedures and functions.
0
votes
0answers
3 views

E2E & Unit Testing Framework for React.JS from scratch

please advice an article or recommendations of how to choose a testing framework for an application, which is being built on React.JS from scratch. How can I build an efficient system? What can I get ...
0
votes
0answers
12 views

Code Coverage tool for C/C++

I am looking for code coverage tool for c and cpp code for Linux. Please recommend free or open source tool that can provide report stating total percentage of code covered by the unit tests. I will ...
0
votes
0answers
11 views

Is there any Node.js package that would allow me to mock MySql connection in order to test APIs that need db connection?

I want to do unit testing of a few APIs written by myself, which make some queries on a MySQL database. But I learned recently that establishing an actual connection during testing is not a good ...