A testbed is a platform for experimentation of large development projects. Testbeds allow for rigorous, transparent, and replicable testing of new technologies or code in an isolated environment.
Questions tagged [testbed]
157 questions
1
vote
0 answers
VHDL testbench real-life example
I think I've read most of the textbooks that dedicate chapters, sections, or the entire text to writing testbenches in VHDL. Still, I have the impression that none of them shows the real thing. Seriously, if that's all there is to writing…

VHDL Addict
- 171
- 1
- 10
1
vote
1 answer
does the app engine capability_stub for unit testing allow disabling services?
When I was looking at the source code for capability_stub.py in app engine's testbed framework, I saw a comment stating that every service was always enabled. Now, is there a way to simmulate certain outages by disabling certain services, other than…

bigblind
- 12,539
- 14
- 68
- 123
0
votes
0 answers
Update angular from 10.2 to 11. Error - An unhandled exception occurred: Cannot read properties of undefined (reading 'Workspace') when run ng test
This error is returned when running ng test
Find this link - https://lightrun.com/answers/angular-schule-angular-cli-ghpages-cannot-read-property-workspace-of-undefined-after-upgrading-to-angular-v11. But this don't like for my problem

Dmitriy
- 1
0
votes
0 answers
TestBed.configureTestingModule throws injector of null error using jest
I have a project that was on jasmine, and I'm trying to migrate to jest. All I changed was the jasmine.createSpy to jest.fn, so I suspect it's something with my configuration.
Here is my old spec.ts file with jasmine:
myServiceMock= {
…

Felipe Centeno
- 2,911
- 1
- 21
- 39
0
votes
0 answers
Angular error: "1 periodic timer(s) still in the queue." when I use HttpClientTestingModule and Testing Library
In my Angular project, I have decided to remove jasmine and karma and use jest and testing-library.
I have decided to apply my test policy under the "case of use" concept. It means: My tests are made on the component and I only will mock the…

David
- 1
- 1
0
votes
0 answers
Testing Angular Lazy Loaded
There are a lot of old answers that exist on this platform and I have tried them all, but none of them resolved my request.
Some methods were deprecated, and I found info that requires to use of NgModule instead of SpyNgModuleFactoryLoader. I also…

Serkan KONAKCI
- 1,100
- 11
- 16
0
votes
0 answers
Unable to mock FullCalendar's getApi() that returns a mock Calendar (Angular & Jasmine, Karma)
I'm trying to write test cases around a component that contains my FullCalendar component in Angular.
I've written karma tests using a MockFullCalendar that extends FullCalendar and have been successfully able to mock the getApi().view calls for…

theintergalacticat
- 11
- 3
0
votes
1 answer
How to use a DomSanitizer inside a unit test, if the component does not inject it?
I have a simple component, which does not inject the DomSanitizer. Let's say it is
export class ExampleComponent {
@Input()
public safeHtml: SafeHtml | undefined;
}
How can I use the DomSanitizer inside a unit test? I've tried providing…

MojioMS
- 1,583
- 4
- 17
- 42
0
votes
0 answers
how to use `TestBed.configureTestingModule` multiple times to create multiple modules
I want to test an Angular module, in my spec, I create the module using TestBed.configureTestingModule.
in my testing needs, I want to create multiple modules
or accurately, create the module in multiple ways, for example using .forRoot(),…

Sh eldeeb
- 1,589
- 3
- 18
- 41
0
votes
1 answer
Jmeter thread time series with milliseconds frequency
I am trying to build a test plan in JMeter based on a specific thread time series.
For example, I know that at time x, there are n(x) users, and at time x+t, there are n(x+t) users, and so on. The issue is that the number of users has to be updated…

Andrea Pinto
- 31
- 2
- 5
0
votes
0 answers
Angular service test - TestBed ignores one of the mocks
I am having an issue with one of my spy objects - somehow TestBed seems to ignore it at all.
The spy for StateService works perfect, but the one for RoutingService keeps failing with:
NullInjectorError: No provider for ActivatedRoute! (the real…

Dandy
- 929
- 2
- 14
- 23
0
votes
1 answer
Testing URL Params in Angular Unit Test
I am attempting to test for a string contained within URL parameters. In my typescript file I have the method:
checkURLParams() {
if (this.route.parent) {
this.route.parent.params.subscribe((params) => {
if (params['view'] ===…

Learning Developer
- 156
- 2
- 4
- 14
0
votes
0 answers
Is there a way to provide a mock for entryComponents in an Angular test?
I want to test an Angular component (MyTableComponent) which uses MatDialog to display another component (DefaultDialogComponent)
my-table.component.ts
import { MatDialog } from "@angular/material/dialog";
export class MyTableComponent {
…

adrisons
- 3,443
- 3
- 32
- 48
0
votes
1 answer
Failed to find firebase ui widget on page - Angular test environment
I am writing tests for my angular web application that contains a page with a firebase UI element. There are two tests, one that ensures the page loads and one that ensures the firebaseUI component loads…

shad0w
- 15
- 6
0
votes
1 answer
JMeter: Performance testing of two different Thread Pools and their comparison
My question is different from this as it is too old and there may be new JMeter Plugins.
I have two Java Classes Server1 and Server2. Server1 class extends ThreadPoolExecutor.
Server2 class extends WaterMarkExecutor User can connect to any of these…

Java Lover
- 13
- 2