karma-coverage icon indicating copy to clipboard operation
karma-coverage copied to clipboard

karma fails for ng test --code-coverage without proper error message after upgrading from angular 8 to angular 11.2.4

Open gauravmasand09 opened this issue 4 years ago • 4 comments

My package.json below for karma Screenshot 2021-07-06 at 09 54 10

My Error->
Screenshot 2021-07-06 at 09 58 37

Similar Error like Error thrown in afterAll [object Object]

Banging my head on this issue from the past 2 weeks, still no success.

Have recently updated Angular 8 to Angular 11.2.4.

I have total of 1000+ test cases which are failing randomly , but when runs individually it works.

Need help on this issue

gauravmasand09 avatar Jul 06 '21 04:07 gauravmasand09

Yaa same issue problem I m also facing in angular 11.2.4 Test Cases are falling randomly No proper error message

My Error > Screenshot from 2021-07-06 10-10-07

Truly need help with such a frustrating issue

Piyush132000 avatar Jul 06 '21 04:07 Piyush132000

my test cases are failing randomly , is it the same for you @Piyush132000 ? Screenshot 2021-07-06 at 10 28 13

gauravmasand09 avatar Jul 06 '21 04:07 gauravmasand09

Facing the same issues. Random different test cases failing each time. Test cases are failing without any proper error unable to debug. Frustrating!!!

umang-goyal avatar Jul 06 '21 05:07 umang-goyal

my test cases are failing randomly , is it the same for you @Piyush132000 ? Screenshot 2021-07-06 at 10 28 13

yaa, test cases are also falling the same for me I don't know why this issue coming and why test cases are failing and only 1 test case fail and it changes every time when I run ng test or ng test --no-watch --code-coverage always. it's ridiculous and frustrating.

Test cases are falling good but they are not giving a proper error message and without a proper error message how can we remove such an error.

Piyush132000 avatar Jul 06 '21 05:07 Piyush132000