Questions tagged [unit-tests]

Unit testing is a method by which individual units of source code are tested to determine if they are fit for use. A unit is the smallest testable part of an application.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
1k views

Get Visual Studio (2013 Community) unit test execution messages

Hi, I'm trying to make a "nice" test execution report and get the following elements: Message StackTrace Elapsed time Test name and Test Outcome are easily taken as TestContext parameters, ...
1
vote
1answer
38 views

What is the best way to unit-test a state machine?

I love state machines because they have systematic ways to test it but i would like to discuss some philosophies with you. Referring to the upper state machine, Suppose that we always start a state ...
1
vote
0answers
47 views

Unit test for reading/writing files

I finished my studies recently and I am a junior developer. The problem is that I'm the only computer scientist in my company and I am afraid of taking bad habits because nobody is here to tell me how ...
1
vote
0answers
35 views

Jasmine, how to test a return?

I'm writing some unit tests for our Angular application. In a few instances, we have some code that is like the following. public submit(): void { if (!this.selectedValue) { ...
1
vote
0answers
70 views

Consumer-driven Contract Testing

I've just come across the term consumer-driven contract testing and, working as a QA, was wondering a few things: What does this actually mean in laymans terms? Who would generally execute this type ...
0
votes
0answers
26 views

Testing strategy for Angular Project

I am working on a software project with Angular in frontend and Spring Boot in backend with a friend. As I am responsible for the frontend, I would like to ask you for you opinion, how to properly ...
0
votes
0answers
29 views

How to unit test global validation?

Let's say my program takes two required arguments: --opt-a and --opt-b. I want to test every single validation: two test cases here, one if --opt-a is missing, and another one when --opt-b is missing. ...
0
votes
0answers
23 views

iOS CI/CD service for Gitlab onpremise

Currently, as continuous-integration / deployment environment, we use a Mac-Mini connected to our Gitlab “on premise” that build, execute unit / UI tests and deploy our iOS applications to firebase, ...
0
votes
0answers
29 views

Unit testing a native sql query

The project in question runs on Hibernate 5.4 for persistence, against MySQL when deployed. Unit tests are ran during the Maven build. I'm in the process of doing a feel-faster optimization. As such, ...