testing Questions

4

I can pass in a time to my widget, but my widget is supposed to be instantiating the time in itself, not receiving a DateTime from a parent widget.
Caterwaul asked 7/12, 2018 at 17:8

5

Solved

My spring-data-jpa backend has a class that populates the (test) database with a lot of test data. The class usese the spring data repositories to create entities. All my entities have a field anno...
Coexecutor asked 21/2, 2017 at 17:47

3

What is a good and clean way to cleanup after a test case failed? For a lot of test cases, I first create a clean database environment, which needs to be cleaned up after a test case finishes. tes...
Flophouse asked 12/2, 2019 at 11:24

10

I'm using [email protected] on Mac High Sierra. I want to run tests that were setup in this Stratum client project. I have run npm install successfully. But when I try and run individual tests...
Ninnyhammer asked 18/2, 2018 at 23:2

2

Solved

Is it necessary to cover Sequelize migrations with unit tests, or even functional tests to check how they affect DB structure? If so, how to do it?
Triserial asked 29/5, 2018 at 16:57

4

I have an issue where NUnit is telling me: "No suitable constructor was found". What causes this? I also get another message: "Exception doesn't have a stacktrace". Both messages just repeat over a...
Civilized asked 19/4, 2016 at 15:0

3

Is there a way to debug tests in Go using an IDE like IntelliJ ? I am using the Go plugin for intelliJ and seems like when providing a debug configuration, the debug button is disabled.
Herbertherbicide asked 20/1, 2016 at 0:14

3

Solved

im very new to python, trying to create reusable code. when i try to call the class Login and function login_user in test_main.py by passing all the arguments that were used under Login class, im g...
Centner asked 25/2, 2020 at 13:19

12

Solved

In my application_controller, I have the following set to include the locale with all paths generated by url_for: def default_url_options(options={}) { :locale => I18n.locale } end My reso...
Weymouth asked 31/12, 2009 at 22:38

3

I am working on an aggregation framework using spring boot, which can be used to aggregate multiple kinds of I/O operations' results. Additionally, it has support for both non-blocking (reactive) &...
Antoninus asked 15/3, 2022 at 10:24

5

Solved

We have had an issue with a block of code that responds poorly in the face of slow databases (It craps the bed on a query timeout). We have created a patch, and are in the process of running it thr...
Chimney asked 28/4, 2009 at 14:16

3

Solved

I want to check that an array contains only objects of a specific class, let's say Float. A working example at the moment: it "tests array_to_test class of elements" do expect(array_to_test.coun...
Flyman asked 19/2, 2016 at 12:34

2

I have a typescript project and I setup aliases in ts.config.json { "compilerOptions": { "paths": { "@pkg/*": ["./packages/*"], }, } } in my ts files...
Eustis asked 29/6, 2021 at 20:59

4

I'm working on a script that uses the Strip REST api with the PHP SDK. I was hoping to be able to replicate the production data in the test environment. Is this possible? Thanks, Andrew
Simplism asked 8/11, 2016 at 19:38

7

Solved

I've been modifying/editing parts of the Android platform, but have run into a problem when trying to test my edits. After making my changes to the platform source, I was able to successfully compi...
Zel asked 23/6, 2010 at 16:53

9

Solved

I'm creating a simple test within my package directory called reverseTest.go package main import "testing" func TestReverse(t *testing.T) { cases := []struct { in, want string }{ {"Hello, wo...
Quitrent asked 30/1, 2015 at 16:37

7

I am trying to use Spring LDAP in one of my Spring Boot projects but I am getting an 'Address already in use' error when running multiple tests. I have cloned locally the sample project here: http...
Scrummage asked 14/11, 2017 at 17:28

2

I have a class that creates (or opens) a file to write some data to it. This class receives a Context in the constructor, saves it in an instance field, and then uses it to call the context.openFil...
Burrill asked 28/3, 2014 at 13:45

5

Solved

Is it possible to disconnect from localhost? I'm writing a Node.js WebSocket server, and I want to test locally what would happen if the connection closes erroneously. If I were testing remotely,...
Steffi asked 28/8, 2012 at 15:10

2

Solved

How can I test rescue_from is RSpec? I'd like to make sure that if one of the exceptions is raised, that the controller correctly sets the flash and does the redirect. Is there a way to simulate th...
Corky asked 16/12, 2010 at 23:35

4

Solved

How do I test private methods in Rust? I didn't find any information about it. There's no information in the documentation either.
Amoebic asked 16/1, 2015 at 6:25

3

Solved

I am currently busy with testing on Cypress . I am actually new so i am not so familiar with everything around , but i am trying to test a CSS property of background-color on certain element , but ...
Novellanovello asked 2/3, 2021 at 11:26

13

Solved

As method withConsecutive will be deleted in PHPUnit 10 (in 9.6 it's deprecated) I need to replace all of occurrences of this method to new code. Try to find some solutions and didn't find any of r...
Florescence asked 8/2, 2023 at 16:44

6

Solved

I have a Spring Boot + Spring Security application that has severalantMatchers paths; some fullyAuthenticated(), some permitAll(). How to I write a test that verifies SecurityConfiguration has my e...
Benitobenjamen asked 27/4, 2017 at 16:50

6

Solved

I've been using Enzyme to test components in my React application for some time. After updating my packages for the first time in a few weeks I've started getting an error from my tests. FAIL src...
Utilitarianism asked 26/9, 2017 at 20:47

© 2022 - 2024 — McMap. All rights reserved.