testing Questions
3
Solved
I have a project in android. I want to test it in junit. In the resources, insinide strings.xml I have a string array called labels_array. How can I access (get) this string array from a test metho...
2
I just upgrade to
Flutter 3.16.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b0366e0a3f (7 days ago) • 2023-12-05 19:46:39 -0800
Engine • revision 54a7145303
Tool...
4
Solved
How can I check if an element contains multiple items in Cypress.io without replicating my code so much?
Current Example:
cy.get(".column")
.children()
.contains("Name");
cy....
1
I have a package with a suggested dependency enabling optional behaviour.
Following the best practice, I added this dependency in my "Suggests" and check if it's installed with requireNam...
Geoid asked 20/10, 2020 at 4:27
14
1
Solved
I'm basically trying to mock an external module in the same way for all my vitest tests, and it's surprisingly not trivial. In Jest, I would just create a __mocks__ folder at the root, and it appea...
Buzzell asked 10/5, 2023 at 0:18
5
We would like to use Confluence for writing and managing our test cases. Confluence Testplan plugin seems close to what I'm looking for, but it's a bit too simple and limited.
How are you using Co...
Andrus asked 8/1, 2010 at 7:40
9
Solved
For some reason I can't understand, Karma says that Jasmine can't find any of my test specs. I'm using Angular 9, Typescript and ng test to run the tests. I also ran jasmine init to create the jasm...
Septuagenarian asked 6/12, 2019 at 12:40
25
Solved
I am getting the following error on $ mvn compile:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Sym360: Compilation failure...
2
Solved
I am trying to get rust to test an example from my inline documentation. I wrote the following code:
#[derive(Clone)]
#[derive(PartialEq)]
#[derive(Debug)]
enum Color {
Black = 1,
Empty = 0,
Whi...
3
Solved
I'm trying to setup my application in tests and use in Startup's Configure method context.Database.EnsureCreated() and expecting Sqlite file appear in Test's bin folder
Here's my code:
using Micr...
Fresco asked 11/4, 2020 at 15:18
1
I have a multi-module Android gradle project.
project
|- app
|- module1
|- module2
Each of the modules contains unit tests, the app module also contains Instrumented Tests. Instead of taking...
Deepset asked 11/7, 2019 at 7:12
8
Solved
I am looking for ways / best practices on testing methods defined in an abstract base class. One thing I can think of directly is performing the test on all concrete subclasses of the base class, b...
3
Solved
I was recently looking over a co-workers code and I realized that he implements a jest function in a BeforeAll function at the top of the describe call, and then creates a data object in a beforeEa...
Stygian asked 4/2, 2019 at 13:19
2
Solved
On the angular documentation I see these two functions, tick() and flush(). Both of these seem to do similar things. From the angular documentation, it says for tick:
Simulates the asynchronous ...
Janae asked 7/6, 2019 at 17:23
12
Solved
I'm in the middle of process of moving our old capybara tests to cypress.io as our application is going SPA way.
In our case we have over 2000 tests covering a lot of features.
So common pattern t...
Read asked 23/4, 2018 at 11:43
4
Rails: 5.2.1
Out of the box test setup
Running with chrome as driver (both normal and headless)
I am trying to run a System test where I access a external service, then get redirected back to my...
Obey asked 19/8, 2018 at 12:34
9
Solved
I have a asp.net core application that uses dependency injection defined in the startup.cs class of the application:
public void ConfigureServices(IServiceCollection services)
{
services.AddD...
Stefanstefanac asked 9/6, 2016 at 11:29
6
Solved
Hi have some error with testing my App made with Angular 7. I do not have much experience in angular, so I would need your help+
Error: StaticInjectorError(DynamicTestModule)[BeerDetailsComponent ...
Alver asked 6/12, 2018 at 15:10
3
I have a performance test that is running in jmeter on a win7 machine.
The performance test is comprised of 2 threads groups( user1, user2) and each thread makes 40 requests to a website using ht...
Colbert asked 3/7, 2014 at 20:53
6
Solved
I am writing some unit tests like the following:
def executing_a_signal
a_method(a_signal.new, a_model, a_helper);
assert_equal(new_state, a_model.state)
end
The tests work fine, but the metho...
Hopefully asked 30/9, 2009 at 3:42
26
Solved
I'm trying to write tests for my simple React App that creates a UI for a dog Shelter using API etc. I have imported the modules shown below and ran the following command
npm install jest-dom react...
4
Solved
My target is to mock Build.Version.SDK_INT with Mockito. Already tried:
final Build.VERSION buildVersion = Mockito.mock(Build.VERSION.class);
doReturn(buildVersion.getClass()).when(buildVersion).g...
Photographic asked 28/10, 2016 at 7:51
6
Solved
I have the following service:
import { Injectable } from '@angular/core';
import { MenuItem } from './../classes/menu-item';
import { ITEMS } from './../static-data/items-list';
@Injectable()
e...
Viridian asked 1/2, 2017 at 12:46
6
Solved
I want to test whether a function invokes other functions properly with minitest Ruby, but I cannot find a proper assert to test from the doc.
The source code
class SomeClass
def invoke_function...
Gaspard asked 3/6, 2012 at 10:6
© 2022 - 2024 — McMap. All rights reserved.