Category : junit

I have such intercept method in my app with following code: intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { if (request.url.split(‘/’).includes(‘login’)) { return next.handle(request); } else { if (request.url.split(‘/’).includes(‘refresh’)) { return next.handle(request).pipe(catchError(error => { if (error instanceof HttpErrorResponse && error.status === 400) { this.dialogRef.closeAll(); this.router.navigate([‘/login’]); } else { return throwError(error); } })); } else { if (this.authService.getAccessToken()) ..

Read more

INFO: Starting to record. INFO: Processing JUnit INFO: [JUnit] – 4 test report file(s) were found with the pattern ‘**/unit-tests.xml’ relative to ‘E:Jenkins-ws{foldername}’ for the testing framework ‘JUnit’. I’m getting above message while processing JUnit in Jenkins. My tests are succeeded and jenkins getting failed due to this issue. Here is my karma.config file. basePath: ..

Read more