benbria / coffee-coverage

Istanbul and JSCoverage-style instrumentation for CoffeeScript files.
MIT License
145 stars 31 forks source link

Failing Tests #84

Open littlebee opened 7 years ago

littlebee commented 7 years ago

Hi, I forked this repo to add support for CJSX / coffee-react. I haven't made any changes yet, but tests are failing. I wonder if maybe I don't have something installed that I need?

tail of results from npm build && mocha:

77 passing (2s) 7 failing

1) Istanbul tests should find if branch with no else:

  first statement
  + expected - actual

   {
     "end": {
  -    "column": 29
  +    "column": 30
       "line": 2
     }
     "start": {
       "column": 0

  at Context.<anonymous> (test/istanbul/test.coffee:345:66)

2) Istanbul tests should find switch/case branches:

  first statement
  + expected - actual

   {
     "end": {
  -    "column": 22
  +    "column": 23
       "line": 6
     }
     "start": {
       "column": 0

  at Context.<anonymous> (test/istanbul/test.coffee:468:66)

3) Istanbul tests should find functions:

  first statement
  + expected - actual

   {
     "end": {
  -    "column": 22
  +    "column": 23
       "line": 2
     }
     "start": {
       "column": 0

  at Context.<anonymous> (test/istanbul/test.coffee:589:66)

4) Istanbul tests should find multi-line functions:

  first statement
  + expected - actual

   {
     "end": {
  -    "column": 22
  +    "column": 23
       "line": 6
     }
     "start": {
       "column": 0

  at Context.<anonymous> (test/istanbul/test.coffee:683:66)

5) Istanbul tests should find functions in a class:

  class statement
  + expected - actual

   {
     "end": {
  -    "column": 10
  +    "column": 11
       "line": 4
     }
     "start": {
       "column": 0

  at Context.<anonymous> (test/istanbul/test.coffee:786:66)

6) Istanbul tests should find name of anonymous class:

  class fn
  + expected - actual

         "column": 4
         "line": 1
       }
     }
  -  "name": "_Class"
  +  "name": "(anonymousClass)"
   }

  at Context.<anonymous> (test/istanbul/test.coffee:864:59)

7) Coverage tests should handle nested recursion correctly:

  AssertionError: expected 5 to equal 10
  + expected - actual

  -5
  +10

  at Context.<anonymous> (test/tests.coffee:107:27)

bwilkerson@IT-SEA14730-MBP:~/projects/zulily/coffee-coverage$ npm -v 4.1.2 bwilkerson@IT-SEA14730-MBP:~/projects/zulily/coffee-coverage$ node -v v7.5.0 bwilkerson@IT-SEA14730-MBP:~/projects/zulily/coffee-coverage$ mocha -v

error: unknown option `-v'

bwilkerson@IT-SEA14730-MBP:~/projects/zulily/coffee-coverage$ mocha --version 3.2.0

jwalton commented 7 years ago

These were definitely passing last I ran them, but that was a while ago - I'm guessing some package has upgraded to a newer version and is causing chaos. I'll look into it on Tuesday (Monday is a holiday here).

On Sat, Feb 18, 2017 at 12:47 PM, Bee notifications@github.com wrote:

Hi, I forked this repo to add support for CJSX / coffee-react. I haven't made any changes yet, but tests are failing. I wonder if maybe I don't have something installed that I need?

tail of results from npm build && mocha:

77 passing (2s) 7 failing

1.

Istanbul tests should find if branch with no else:

first statement

  • expected - actual

    { "end": {

  • "column": 29
  • "column": 30 "line": 2 } "start": { "column": 0

    at Context. (test/istanbul/test.coffee:345:66) 2.

    Istanbul tests should find switch/case branches:

    first statement

  • expected - actual

    { "end": {

  • "column": 22
  • "column": 23 "line": 6 } "start": { "column": 0

    at Context. (test/istanbul/test.coffee:468:66) 3.

    Istanbul tests should find functions:

    first statement

  • expected - actual

    { "end": {

  • "column": 22
  • "column": 23 "line": 2 } "start": { "column": 0

    at Context. (test/istanbul/test.coffee:589:66) 4.

    Istanbul tests should find multi-line functions:

    first statement

  • expected - actual

    { "end": {

  • "column": 22
  • "column": 23 "line": 6 } "start": { "column": 0

    at Context. (test/istanbul/test.coffee:683:66) 5.

    Istanbul tests should find functions in a class:

    class statement

  • expected - actual

    { "end": {

  • "column": 10
  • "column": 11 "line": 4 } "start": { "column": 0

    at Context. (test/istanbul/test.coffee:786:66) 6.

    Istanbul tests should find name of anonymous class:

    class fn

  • expected - actual

    "column": 4 "line": 1

    } }

    • "name": "_Class"
  • "name": "(anonymousClass)" }

    at Context. (test/istanbul/test.coffee:864:59) 7.

    Coverage tests should handle nested recursion correctly:

    AssertionError: expected 5 to equal 10

  • expected - actual

    -5 +10

    at Context. (test/tests.coffee:107:27)

bwilkerson@IT-SEA14730-MBP:/projects/zulily/coffee-coverage$ npm -v 4.1.2 bwilkerson@IT-SEA14730-MBP:/projects/zulily/coffee-coverage$ node -v v7.5.0 bwilkerson@IT-SEA14730-MBP:~/projects/zulily/coffee-coverage$ mocha -v

error: unknown option `-v'

bwilkerson@IT-SEA14730-MBP:~/projects/zulily/coffee-coverage$ mocha --version 3.2.0

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/benbria/coffee-coverage/issues/84, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsF-wUoKDHLSTQXQLzmxSB5vyKoRpMQks5rdy6egaJpZM4MFMXV .

jaredsmith commented 7 years ago

Any status update here? I'm still seeing failing tests... most with just a column off by one.