grunt-qunit-istanbul icon indicating copy to clipboard operation
grunt-qunit-istanbul copied to clipboard

Drive letters on Windows should not be case-sensitive

Open sgarcialaguna opened this issue 10 years ago • 4 comments

This took me a couple hours to figure out.

Wanted to include grunt-qunit-istanbul in a Jenkins project - the test ran fine, but the coverage report was empty. Running 'grunt qunit' manually worked fine. Eventually I found that Jenkins used 'd:\Jenkins' as a workspace path and I used that path in my call to grunt. Changing it to 'D:\Jenkins' fixed the issue.

sgarcialaguna avatar Jul 31 '14 17:07 sgarcialaguna

Weird issue. I don't have the time to get my hands on a fix, do you mind sending in a PR?

asciidisco avatar Aug 13 '14 20:08 asciidisco

@sgarcialaguna Any news on this? Have you had the time to fix the code & if so, could you provide it?

asciidisco avatar Dec 02 '14 20:12 asciidisco

Sorry, I had completely forgotten about this. I'll try to look into this in the next couple days / over the weekend.

I won't promise anything, though, since I don't really know anything about grunt plugins besides how to use them.

sgarcialaguna avatar Dec 03 '14 19:12 sgarcialaguna

https://github.com/sgarcialaguna/grunt-qunit-istanbul-project/blob/master/Gruntfile.js shows the problem:

        qunit: {
            all: ['tests/*.html'],
            options: {
                coverage: {
                    src: ['src/*.js'], // This works, a complete coverage report is generated
                    //src: ['SRC/*.js'], // This doesn't work, but to Windows, the paths are equivalent
                    instrumentedFiles: './temp/',
                    htmlReport: 'report/coverage',
                    coberturaReport: 'report/'
                }
            }
        },

sgarcialaguna avatar Dec 03 '14 19:12 sgarcialaguna