Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 of 0 relevant lines covered (NaN%) on my project #1656

Closed
OrbintSoft opened this issue Aug 8, 2022 · 4 comments
Closed

0 of 0 relevant lines covered (NaN%) on my project #1656

OrbintSoft opened this issue Aug 8, 2022 · 4 comments

Comments

@OrbintSoft
Copy link

I have a problem on my project, for some reasons coveralls is unable to detect the coverage report: https://coveralls.io/builds/51472302

Below a complete log of run in verbose mode, I launched it locally, but from CI the problem is the same.

The only issue that I see in log is: [debug] "2022-08-08T17:23:06.293Z" 'user options undefined', but I am not sure if it's a problem.

What am I doing wrong:

stefano@localhost /mnt/software/Progetti/OSEventListener $ npm run coverage

> oseventlistener@1.0.2 coverage
> nyc --cache npm run test


> oseventlistener@1.0.2 test
> gulp test

[19:22:38] Using gulpfile /mnt/software/Progetti/OSEventListener/gulpfile.js
[19:22:38] Starting 'test'...


  EventListener test bind to event with options
    ✔ should not throw error
    ✔ should throw error
    ✔ should be executed with correct priority
    ✔ should not be deferred
    ✔ should be deferred
    ✔ should not store data
    ✔ should store data
    ✔ cannot bind an event with itself

  EventListener test dispatch
    ✔ dispatch is not deferred
    ✔ dispatch is deferred
    ✔ dispatch does not throw errors
    ✔ dispatch throws errors
    ✔ dispatch does not store data
    ✔ dispatch stores data

  EventListener basic tests
    ✔ sets name
    ✔ dispatch
    ✔ subscribe
    ✔ unsubscribe
    ✔ subscribe with key
    ✔ unsubscribe with key
    ✔ waits until first dispatch, not dispatched yet
    ✔ waits until first dispatch, already dispatched
    ✔ it resets first dispatch, not dispatched yet
    ✔ it binds to another event
    ✔ it unbinds to another event
    ✔ it attachs an event
    ✔ it detaches an event

  It tests evil situtations that should not naturally occurs
    ✔ EventListener uses console logger if available
    ✔ OptionsMapper it does not map not own correctly
    ✔ waitUntilFirstDispatchAsync fails if subsrcribe fails
    ✔ unsubscribeWithKey fails if unsubsrcribe fails
    ✔ mixed bad usage of subscribe and unsubscribe with and without key

  ListenerWrapper test
    ✔ sets properties correctly

  tests null logger
    ✔ does nothing

  Options Mapper
    ✔ it returns different object same properties if equal
    ✔ it maps properties correctly

  EventListener test subscribe with key with options
    ✔ does not subscribe same function multiple times
    ✔ does subscribe same function multiple times
    ✔ does not subscribe multiple listeners with same key
    ✔ does subscribe multiple listeners with same key
    ✔ listeners are executed in correct order
    ✔ does not throw errors
    ✔ throws errors

  EventListener test subscribe
    ✔ does not subscribe same function multiple times
    ✔ does subscribe same function multiple times
    ✔ listeners are executed in correct order
    ✔ does not throw errors
    ✔ throws errors

  EventListener test unbind from event with options
    ✔ should not throw error
    ✔ should throw error

  EventListener test unsubscribe with key with options
    ✔ it does unsubscribe all listeners when a key has multiple subscribed listeners
    ✔ it does unsubscribe only last listener when a key has multiple subscribed listeners
    ✔ unsubscribe only the first function
    ✔ unsubscribe all listeners with same function
    ✔ does not throw errors
    ✔ does throws errors

  EventListener test unsubscribe with options
    ✔ unsubscribe only the first function
    ✔ unsubscribe all functions
    ✔ does not throw errors
    ✔ does throws errors
    ✔ unsubscribe if subscribed with keys

  EventListener wait until first dispatch with options
    ✔ does not reset current status
    ✔ resets status before wait
    ✔ resets status after dispatch


  64 passing (188ms)

[mochawesome] Report JSON saved to /mnt/software/Progetti/OSEventListener/tests/report-results/mochawesome.json

[mochawesome] Report HTML saved to /mnt/software/Progetti/OSEventListener/tests/report-results/mochawesome.html

[19:22:47] Finished 'test' after 9.24 s
---------------------------------------------------------------------|---------|----------|---------|---------|-------------------
File                                                                 | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
---------------------------------------------------------------------|---------|----------|---------|---------|-------------------
All files                                                            |     100 |      100 |     100 |     100 |                   
 file:/mnt/software/Progetti/OSEventListener/src                     |     100 |      100 |     100 |     100 |                   
  EventListener.ts                                                   |     100 |      100 |     100 |     100 |                   
  ListenerWrapper.ts                                                 |     100 |      100 |     100 |     100 |                   
 options/file:/mnt/software/Progetti/OSEventListener/src/options     |     100 |      100 |     100 |     100 |                   
  DefaultBindToEventOptions.ts                                       |     100 |      100 |     100 |     100 |                   
  DefaultDispatchOptions.ts                                          |     100 |      100 |     100 |     100 |                   
  DefaultEventListenerOptions.ts                                     |     100 |      100 |     100 |     100 |                   
  DefaultSubscribeOptions.ts                                         |     100 |      100 |     100 |     100 |                   
  DefaultSubscribeWithKeyOptions.ts                                  |     100 |      100 |     100 |     100 |                   
  DefaultUnbindFromEventOptions.ts                                   |     100 |      100 |     100 |     100 |                   
  DefaultUnsubscribeOptions.ts                                       |     100 |      100 |     100 |     100 |                   
  DefaultUnsubscribeWithKeyOptions.ts                                |     100 |      100 |     100 |     100 |                   
  DefaultWaitUntilFirstDispatchOptions.ts                            |     100 |      100 |     100 |     100 |                   
  OptionsMapper.ts                                                   |     100 |      100 |     100 |     100 |                   
 utilities/file:/mnt/software/Progetti/OSEventListener/src/utilities |     100 |      100 |     100 |     100 |                   
  NullLogger.ts                                                      |     100 |      100 |     100 |     100 |                   
---------------------------------------------------------------------|---------|----------|---------|---------|-------------------
stefano@localhost /mnt/software/Progetti/OSEventListener $ npm run coveralls

> oseventlistener@1.0.2 coveralls
> nyc report --reporter=text-lcov | coveralls -v

[debug] "2022-08-08T17:23:06.287Z"  'TN:\n' +
  'SF:src/file:/mnt/software/Progetti/OSEventListener/src/EventListener.ts\n' +
  'FN:42,(anonymous_1)\n' +
  'FN:50,(anonymous_2)\n' +
  'FN:63,(anonymous_3)\n' +
  'FN:67,(anonymous_4)\n' +
  'FN:86,(anonymous_5)\n' +
  'FN:104,(anonymous_6)\n' +
  'FN:122,(anonymous_7)\n' +
  'FN:128,(anonymous_8)\n' +
  'FN:154,(anonymous_9)\n' +
  'FN:165,(anonymous_10)\n' +
  'FN:174,(anonymous_11)\n' +
  'FN:195,(anonymous_12)\n' +
  'FN:208,(anonymous_13)\n' +
  'FN:209,(anonymous_14)\n' +
  'FN:211,(anonymous_15)\n' +
  'FN:232,(anonymous_16)\n' +
  'FN:256,(anonymous_17)\n' +
  'FN:288,(anonymous_18)\n' +
  'FN:306,(anonymous_19)\n' +
  'FN:329,(anonymous_20)\n' +
  'FN:355,(anonymous_21)\n' +
  'FN:366,(anonymous_22)\n' +
  'FNF:22\n' +
  'FNH:22\n' +
  'FNDA:10,(anonymous_1)\n' +
  'FNDA:79,(anonymous_2)\n' +
  'FNDA:61,(anonymous_3)\n' +
  'FNDA:33,(anonymous_4)\n' +
  'FNDA:84,(anonymous_5)\n' +
  'FNDA:4,(anonymous_6)\n' +
  'FNDA:52,(anonymous_7)\n' +
  'FNDA:56,(anonymous_8)\n' +
  'FNDA:9,(anonymous_9)\n' +
  'FNDA:104,(anonymous_10)\n' +
  'FNDA:2,(anonymous_11)\n' +
  'FNDA:26,(anonymous_12)\n' +
  'FNDA:11,(anonymous_13)\n' +
  'FNDA:10,(anonymous_14)\n' +
  'FNDA:10,(anonymous_15)\n' +
  'FNDA:38,(anonymous_16)\n' +
  'FNDA:22,(anonymous_17)\n' +
  'FNDA:22,(anonymous_18)\n' +
  'FNDA:15,(anonymous_19)\n' +
  'FNDA:9,(anonymous_20)\n' +
  'FNDA:2,(anonymous_21)\n' +
  'FNDA:1,(anonymous_22)\n' +
  'DA:1,1\n' +
  'DA:6,1\n' +
  'DA:8,1\n' +
  'DA:9,1\n' +
  'DA:11,1\n' +
  'DA:12,1\n' +
  'DA:14,1\n' +
  'DA:15,1\n' +
  'DA:17,1\n' +
  'DA:19,1\n' +
  'DA:20,1\n' +
  'DA:23,1\n' +
  'DA:30,1\n' +
  'DA:31,79\n' +
  'DA:32,79\n' +
  'DA:33,79\n' +
  'DA:34,79\n' +
  'DA:35,79\n' +
  'DA:36,79\n' +
  'DA:37,79\n' +
  'DA:43,10\n' +
  'DA:51,79\n' +
  'DA:52,79\n' +
  'DA:53,79\n' +
  'DA:62,119\n' +
  'DA:63,119\n' +
  'DA:64,111\n' +
  'DA:65,111\n' +
  'DA:66,111\n' +
  'DA:67,33\n' +
  'DA:69,111\n' +
  'DA:71,8\n' +
  'DA:72,8\n' +
  'DA:73,2\n' +
  'DA:75,6\n' +
  'DA:76,6\n' +
  'DA:87,84\n' +
  'DA:88,84\n' +
  'DA:89,84\n' +
  'DA:99,43\n' +
  'DA:100,15\n' +
  'DA:101,15\n' +
  'DA:102,4\n' +
  'DA:103,4\n' +
  'DA:104,5\n' +
  'DA:105,5\n' +
  'DA:106,2\n' +
  'DA:108,5\n' +
  'DA:109,1\n' +
  'DA:123,52\n' +
  'DA:124,52\n' +
  'DA:125,52\n' +
  'DA:126,52\n' +
  'DA:127,52\n' +
  'DA:128,66\n' +
  'DA:129,66\n' +
  'DA:130,45\n' +
  'DA:131,45\n' +
  'DA:133,66\n' +
  'DA:134,40\n' +
  'DA:137,52\n' +
  'DA:138,43\n' +
  'DA:139,43\n' +
  'DA:141,9\n' +
  'DA:142,9\n' +
  'DA:143,4\n' +
  'DA:145,5\n' +
  'DA:146,5\n' +
  'DA:155,9\n' +
  'DA:166,104\n' +
  'DA:167,104\n' +
  'DA:168,16\n' +
  'DA:170,104\n' +
  'DA:171,104\n' +
  'DA:172,117\n' +
  'DA:173,117\n' +
  'DA:174,2\n' +
  'DA:175,2\n' +
  'DA:178,115\n' +
  'DA:182,2\n' +
  'DA:183,1\n' +
  'DA:185,1\n' +
  'DA:196,26\n' +
  'DA:197,26\n' +
  'DA:198,26\n' +
  'DA:199,4\n' +
  'DA:201,26\n' +
  'DA:202,15\n' +
  'DA:203,2\n' +
  'DA:205,15\n' +
  'DA:208,11\n' +
  'DA:209,11\n' +
  'DA:210,10\n' +
  'DA:211,10\n' +
  'DA:212,10\n' +
  'DA:213,2\n' +
  'DA:216,10\n' +
  'DA:218,11\n' +
  'DA:219,1\n' +
  'DA:222,11\n' +
  'DA:233,38\n' +
  'DA:234,38\n' +
  'DA:235,38\n' +
  'DA:236,35\n' +
  'DA:237,35\n' +
  'DA:238,35\n' +
  'DA:239,35\n' +
  'DA:241,3\n' +
  'DA:242,3\n' +
  'DA:243,1\n' +
  'DA:245,2\n' +
  'DA:246,2\n' +
  'DA:257,22\n' +
  'DA:258,22\n' +
  'DA:259,22\n' +
  'DA:260,22\n' +
  'DA:261,14\n' +
  'DA:262,14\n' +
  'DA:263,13\n' +
  'DA:265,1\n' +
  'DA:267,14\n' +
  'DA:268,3\n' +
  'DA:271,22\n' +
  'DA:272,10\n' +
  'DA:273,10\n' +
  'DA:274,4\n' +
  'DA:276,6\n' +
  'DA:279,18\n' +
  'DA:280,18\n' +
  'DA:289,22\n' +
  'DA:290,22\n' +
  'DA:291,2\n' +
  'DA:292,2\n' +
  'DA:293,1\n' +
  'DA:295,1\n' +
  'DA:296,1\n' +
  'DA:298,20\n' +
  'DA:299,2\n' +
  'DA:300,2\n' +
  'DA:301,1\n' +
  'DA:303,1\n' +
  'DA:304,1\n' +
  'DA:306,18\n' +
  'DA:307,15\n' +
  'DA:316,18\n' +
  'DA:317,18\n' +
  'DA:330,9\n' +
  'DA:331,9\n' +
  'DA:332,9\n' +
  'DA:333,4\n' +
  'DA:334,4\n' +
  'DA:335,4\n' +
  'DA:337,5\n' +
  'DA:338,5\n' +
  'DA:339,2\n' +
  'DA:341,3\n' +
  'DA:342,3\n' +
  'DA:356,2\n' +
  'DA:367,1\n' +
  'LF:159\n' +
  'LH:159\n' +
  'BRDA:50,0,0,21\n' +
  'BRDA:63,1,0,111\n' +
  'BRDA:63,1,1,8\n' +
  'BRDA:63,2,0,119\n' +
  'BRDA:63,2,1,15\n' +
  'BRDA:64,3,0,35\n' +
  'BRDA:64,3,1,76\n' +
  'BRDA:66,4,0,14\n' +
  'BRDA:66,4,1,97\n' +
  'BRDA:66,5,0,111\n' +
  'BRDA:66,5,1,99\n' +
  'BRDA:66,5,2,99\n' +
  'BRDA:67,6,0,16\n' +
  'BRDA:67,6,1,17\n' +
  'BRDA:67,7,0,16\n' +
  'BRDA:67,7,1,17\n' +
  'BRDA:72,8,0,2\n' +
  'BRDA:72,8,1,6\n' +
  'BRDA:86,9,0,47\n' +
  'BRDA:99,10,0,15\n' +
  'BRDA:99,10,1,28\n' +
  'BRDA:101,11,0,4\n' +
  'BRDA:101,11,1,11\n' +
  'BRDA:101,12,0,15\n' +
  'BRDA:101,12,1,15\n' +
  'BRDA:105,13,0,2\n' +
  'BRDA:105,13,1,3\n' +
  'BRDA:108,14,0,1\n' +
  'BRDA:108,14,1,4\n' +
  'BRDA:122,15,0,20\n' +
  'BRDA:129,16,0,45\n' +
  'BRDA:129,16,1,21\n' +
  'BRDA:133,17,0,40\n' +
  'BRDA:133,17,1,26\n' +
  'BRDA:137,18,0,43\n' +
  'BRDA:137,18,1,9\n' +
  'BRDA:142,19,0,4\n' +
  'BRDA:142,19,1,5\n' +
  'BRDA:165,20,0,68\n' +
  'BRDA:167,21,0,16\n' +
  'BRDA:167,21,1,88\n' +
  'BRDA:173,22,0,2\n' +
  'BRDA:173,22,1,115\n' +
  'BRDA:182,23,0,1\n' +
  'BRDA:182,23,1,1\n' +
  'BRDA:195,24,0,14\n' +
  'BRDA:198,25,0,4\n' +
  'BRDA:198,25,1,22\n' +
  'BRDA:201,26,0,15\n' +
  'BRDA:201,26,1,11\n' +
  'BRDA:202,27,0,2\n' +
  'BRDA:202,27,1,13\n' +
  'BRDA:212,28,0,2\n' +
  'BRDA:212,28,1,8\n' +
  'BRDA:218,29,0,1\n' +
  'BRDA:218,29,1,10\n' +
  'BRDA:232,30,0,14\n' +
  'BRDA:234,31,0,38\n' +
  'BRDA:234,31,1,31\n' +
  'BRDA:235,32,0,35\n' +
  'BRDA:235,32,1,3\n' +
  'BRDA:235,33,0,38\n' +
  'BRDA:235,33,1,6\n' +
  'BRDA:242,34,0,1\n' +
  'BRDA:242,34,1,2\n' +
  'BRDA:256,35,0,4\n' +
  'BRDA:258,36,0,22\n' +
  'BRDA:258,36,1,5\n' +
  'BRDA:262,37,0,13\n' +
  'BRDA:262,37,1,1\n' +
  'BRDA:267,38,0,3\n' +
  'BRDA:267,38,1,11\n' +
  'BRDA:271,39,0,10\n' +
  'BRDA:271,39,1,12\n' +
  'BRDA:273,40,0,4\n' +
  'BRDA:273,40,1,6\n' +
  'BRDA:288,41,0,4\n' +
  'BRDA:290,42,0,2\n' +
  'BRDA:290,42,1,20\n' +
  'BRDA:292,43,0,1\n' +
  'BRDA:292,43,1,1\n' +
  'BRDA:298,44,0,2\n' +
  'BRDA:298,44,1,18\n' +
  'BRDA:300,45,0,1\n' +
  'BRDA:300,45,1,1\n' +
  'BRDA:329,46,0,2\n' +
  'BRDA:332,47,0,4\n' +
  'BRDA:332,47,1,5\n' +
  'BRDA:338,48,0,2\n' +
  'BRDA:338,48,1,3\n' +
  'BRDA:355,49,0,2\n' +
  'BRDA:366,50,0,1\n' +
  'BRF:92\n' +
  'BRH:92\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/file:/mnt/software/Progetti/OSEventListener/src/ListenerWrapper.ts\n' +
  'FN:16,(anonymous_0)\n' +
  'FNF:1\n' +
  'FNH:1\n' +
  'FNDA:122,(anonymous_0)\n' +
  'DA:6,1\n' +
  'DA:17,122\n' +
  'DA:18,122\n' +
  'DA:19,122\n' +
  'LF:4\n' +
  'LH:4\n' +
  'BRDA:16,0,0,1\n' +
  'BRDA:16,1,0,18\n' +
  'BRF:2\n' +
  'BRH:2\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultBindToEventOptions.ts\n' +
  'FNF:0\n' +
  'FNH:0\n' +
  'DA:6,1\n' +
  'DA:25,1\n' +
  'LF:2\n' +
  'LH:2\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultDispatchOptions.ts\n' +
  'FNF:0\n' +
  'FNH:0\n' +
  'DA:5,1\n' +
  'DA:20,1\n' +
  'LF:2\n' +
  'LH:2\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultEventListenerOptions.ts\n' +
  'FN:13,(anonymous_1)\n' +
  'FNF:1\n' +
  'FNH:1\n' +
  'FNDA:79,(anonymous_1)\n' +
  'DA:2,1\n' +
  'DA:7,1\n' +
  'DA:14,79\n' +
  'DA:18,1\n' +
  'LF:4\n' +
  'LH:4\n' +
  'BRDA:14,0,0,79\n' +
  'BRDA:14,0,1,1\n' +
  'BRF:2\n' +
  'BRH:2\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultSubscribeOptions.ts\n' +
  'FNF:0\n' +
  'FNH:0\n' +
  'DA:5,1\n' +
  'DA:20,1\n' +
  'LF:2\n' +
  'LH:2\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultSubscribeWithKeyOptions.ts\n' +
  'FNF:0\n' +
  'FNH:0\n' +
  'DA:1,1\n' +
  'DA:6,1\n' +
  'DA:27,1\n' +
  'LF:3\n' +
  'LH:3\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultUnbindFromEventOptions.ts\n' +
  'FNF:0\n' +
  'FNH:0\n' +
  'DA:6,1\n' +
  'DA:13,1\n' +
  'LF:2\n' +
  'LH:2\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultUnsubscribeOptions.ts\n' +
  'FNF:0\n' +
  'FNH:0\n' +
  'DA:5,1\n' +
  'DA:16,1\n' +
  'LF:2\n' +
  'LH:2\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultUnsubscribeWithKeyOptions.ts\n' +
  'FNF:0\n' +
  'FNH:0\n' +
  'DA:5,1\n' +
  'DA:20,1\n' +
  'LF:2\n' +
  'LH:2\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/DefaultWaitUntilFirstDispatchOptions.ts\n' +
  'FNF:0\n' +
  'FNH:0\n' +
  'DA:5,1\n' +
  'DA:16,1\n' +
  'LF:2\n' +
  'LH:2\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/options/file:/mnt/software/Progetti/OSEventListener/src/options/OptionsMapper.ts\n' +
  'FN:13,(anonymous_0)\n' +
  'FNF:1\n' +
  'FNH:1\n' +
  'FNDA:558,(anonymous_0)\n' +
  'DA:4,1\n' +
  'DA:14,558\n' +
  'DA:15,558\n' +
  'DA:16,198\n' +
  'DA:19,360\n' +
  'DA:20,726\n' +
  'DA:21,675\n' +
  'DA:24,360\n' +
  'LF:8\n' +
  'LH:8\n' +
  'BRDA:15,0,0,198\n' +
  'BRDA:15,0,1,360\n' +
  'BRDA:20,1,0,675\n' +
  'BRDA:20,1,1,51\n' +
  'BRDA:20,2,0,726\n' +
  'BRDA:20,2,1,675\n' +
  'BRF:6\n' +
  'BRH:6\n' +
  'end_of_record\n' +
  'TN:\n' +
  'SF:src/utilities/file:/mnt/software/Progetti/OSEventListener/src/utilities/NullLogger.ts\n' +
  'FN:9,(anonymous_0)\n' +
  'FN:14,(anonymous_1)\n' +
  'FN:19,(anonymous_2)\n' +
  'FN:24,(anonymous_3)\n' +
  'FN:29,(anonymous_4)\n' +
  'FN:34,(anonymous_5)\n' +
  'FNF:6\n' +
  'FNH:6\n' +
  'FNDA:1,(anonymous_0)\n' +
  'FNDA:1,(anonymous_1)\n' +
  'FNDA:1,(anonymous_2)\n' +
  'FNDA:1,(anonymous_3)\n' +
  'FNDA:1,(anonymous_4)\n' +
  'FNDA:2,(anonymous_5)\n' +
  'DA:5,1\n' +
  'DA:38,1\n' +
  'LF:2\n' +
  'LH:2\n' +
  'BRF:0\n' +
  'BRH:0\n' +
  'end_of_record\n'
[debug] "2022-08-08T17:23:06.293Z"  'user options undefined'
[debug] "2022-08-08T17:23:06.333Z"  {
  run_at: '2022-08-08T17:23:06.295Z',
  repo_token: 'XYxWyAEeJI1EfjvCYJXcP7bLd4SjvzvRU',
  git: {
    head: {
      id: 'a5778148b17385c921faaf6717e7de9e77b7ccce',
      committer_name: 'Stefano Balzarotti',
      committer_email: 'stefano.balzarotti@orbintsoft.net',
      message: 'publish coverage to coveralls',
      author_name: 'Stefano Balzarotti',
      author_email: 'stefano.balzarotti@orbintsoft.net'
    },
    branch: 'master',
    remotes: [ [Object] ]
  }
}
[debug] "2022-08-08T17:23:06.336Z"  'in: ' ''
[info] "2022-08-08T17:23:06.342Z"  'sending this to coveralls.io: ' '{"source_files":[],"git":{"head":{"id":"a5778148b17385c921faaf6717e7de9e77b7ccce","committer_name":"Stefano Balzarotti","committer_email":"stefano.balzarotti@orbintsoft.net","message":"publish coverage to coveralls","author_name":"Stefano Balzarotti","author_email":"stefano.balzarotti@orbintsoft.net"},"branch":"master","remotes":[{"name":"origin","url":"https://github.com/OrbintSoft/OSEventListener"}]},"run_at":"2022-08-08T17:23:06.295Z","repo_token":"XYxWyAEeJI1EfjvCYJXcP7bLd4SjvzvRU"}'
[debug] "2022-08-08T17:23:07.636Z"  200
[debug] "2022-08-08T17:23:07.637Z"  '{"message":"Job ##6.1","url":"https://coveralls.io/jobs/104178193"}'
@afinetooth
Copy link
Collaborator

Hi, @OrbintSoft.

The user options undefined message is not an issue.

The issue is that your source_files param in the JSON your integration is sending to the Coveralls API is empty:

'{"source_files":[],

(Second line from the bottom of your CI build log.)

This happens when the integration can't find the source files listed in your LCOV report (in each SF: /path/to/file.ext entry).

And that's usually because there's a discrepancy between the file paths in your LCOV file and the source file paths at Github, relative to the root directory of your repo.

Assuming you're using the Coveralls Github Action (which uses the node-coveralls integration under-the-hood, you can use the base-path option to correct for that.

You can find the usage instructions for base-path here:
https://github.com/marketplace/actions/coveralls-github-action#usage

Let me know if you have any issues correcting for that.

@OrbintSoft
Copy link
Author

@afinetooth Thank you, I have not solved, but I realized the issue is not related to coveralls. I don't use GitHub actions, think the problem is related to nyc that produces odd paths like: src/utilities/file:/mnt/software/Progetti/OSEventListener/src/utilities/NullLogger.ts

@OrbintSoft
Copy link
Author

I reply here in case someone has the same issue. The problem was caused by a bug in ts-node version 10.8.1, if you upgrade to the last version the problem is fixed.

TypeStrong/ts-node#1790

@afinetooth
Copy link
Collaborator

Hi @OrbintSoft. Thanks for the update. Glad you got it solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants