-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use the new message passing system in grunt-contrib-jasmine #64
Conversation
PR on the other side has been merged. |
Hi. When will this be merged? =grunt-contrib-jasmine has released the version v.2.1.3 for update in Puppeteer. Thanks |
This patch should be very simple to review, but some tests fail right now (somehow certain tests are skipped only when running all tests) which is suspected to be related to gruntjs/grunt-contrib-jasmine#300 but since that hasn't been merged or closed, I can't test if that actually fixes things. In the long run though this repo needs major refactoring (or it needs to be deprecated/archived) since the |
I merged with some additional version adjustments, including a bump. But I am hesitant to publish before all tests pass, i.e. the issues with the failing tests of In any case, as @jabbany mentioned,
So, judging from the name of this repo, as it includes istanbul, I think it would be best to create a new repo for using nyc. I have no experience with nyc, but I guess a lot of this project could be reused. I would like to wait until gruntjs/grunt-contrib-jasmine#300 is merged and published, so we could test against it. If that works, I will publish a new version, so that we have a working solution for an istanbul setup. @jabbany As you seem to be active in this domain, what do you think? |
Actually, I'm not particularly active in JS testing frameworks... I just happen to have a project from years ago that depended on this module to do coverage testing. The move to Puppeteer in At this point though, it might not make sense to go with this kind of toolchain, given that |
It seems that Thank you so much for your inputs and suggestion. Really appreciate it. |
…to v0.6 In order to a) remove a critical code injection vulnerability and b) upgrade browser tests to a recent version of Headless Chrome (instead of PhantomJS), this upgrades grunt-contrib-jasmine to v4.0.0 and grunt-template-jasmine-istanbul to v0.6.0 (via git; this version was never published on NPM). Upgrading the former requires upgrading the latter. Important notes: 1. This is a little iffy, in that this version of grunt-template-jasmine-istanbul was never published to NPM, supposedly on account of it causing some test failures (unclear whether those failures are problems with the code or with the tests): maenu/grunt-template-jasmine-istanbul#64 (comment) 2. This requires installation via `npm install --legacy-peer-deps` because this version of grunt-template-jasmine-istanbul has a peer dependency on grunt-contrib-jasmine v2.x, but we are now on v4.x. It still works fine, but is a little messy to require this extra flag (this should only affect installs that include dev dependencies, not people who are installing loglevel as a dependency of their project). The best solution to these is probably to drop grunt-template-jasmine-istanbul altogether -- we aren't really using the coverage information it gathers right now. The next alternative is to fork and vendor it like we did for grunt-template-jasmine-requirejs.
…to v0.6 In order to a) remove a critical code injection vulnerability and b) upgrade browser tests to a recent version of Headless Chrome (instead of PhantomJS), this upgrades grunt-contrib-jasmine to v4.0.0 and grunt-template-jasmine-istanbul to v0.6.0 (via git; this version was never published on NPM). Upgrading the former requires upgrading the latter. Important notes: 1. This is a little iffy, in that this version of grunt-template-jasmine-istanbul was never published to NPM, supposedly on account of it causing some test failures (unclear whether those failures are problems with the code or with the tests): maenu/grunt-template-jasmine-istanbul#64 (comment) 2. This requires installation via `npm install --legacy-peer-deps` because this version of grunt-template-jasmine-istanbul has a peer dependency on grunt-contrib-jasmine v2.x, but we are now on v4.x. It still works fine, but is a little messy to require this extra flag (this should only affect installs that include dev dependencies, not people who are installing loglevel as a dependency of their project). The best solution to these is probably to drop grunt-template-jasmine-istanbul altogether -- we aren't really using the coverage information it gathers right now. The next alternative is to fork and vendor it like we did for grunt-template-jasmine-requirejs.
…to v0.6 In order to a) remove a critical code injection vulnerability and b) upgrade browser tests to a recent version of Headless Chrome (instead of PhantomJS), this upgrades grunt-contrib-jasmine to v4.0.0 and grunt-template-jasmine-istanbul to v0.6.0 (via git; this version was never published on NPM). Upgrading the former requires upgrading the latter. Important notes: 1. This is a little iffy, in that this version of grunt-template-jasmine-istanbul was never published to NPM, supposedly on account of it causing some test failures (unclear whether those failures are problems with the code or with the tests): maenu/grunt-template-jasmine-istanbul#64 (comment) 2. This requires installation via `npm install --legacy-peer-deps` because this version of grunt-template-jasmine-istanbul has a peer dependency on grunt-contrib-jasmine v2.x, but we are now on v4.x. It still works fine, but is a little messy to require this extra flag (this should only affect installs that include dev dependencies, not people who are installing loglevel as a dependency of their project). The best solution to these is probably to drop grunt-template-jasmine-istanbul altogether -- we aren't really using the coverage information it gathers right now. The next alternative is to fork and vendor it like we did for grunt-template-jasmine-requirejs.
…to v0.6 In order to a) remove a critical code injection vulnerability and b) upgrade browser tests to a recent version of Headless Chrome (instead of PhantomJS), this upgrades grunt-contrib-jasmine to v4.0.0 and grunt-template-jasmine-istanbul to v0.6.0 (via git; this version was never published on NPM). Upgrading the former requires upgrading the latter. Important notes: 1. This is a little iffy, in that this version of grunt-template-jasmine-istanbul was never published to NPM, supposedly on account of it causing some test failures (unclear whether those failures are problems with the code or with the tests): maenu/grunt-template-jasmine-istanbul#64 (comment) 2. This requires installation via `npm install --legacy-peer-deps` because this version of grunt-template-jasmine-istanbul has a peer dependency on grunt-contrib-jasmine v2.x, but we are now on v4.x. It still works fine, but is a little messy to require this extra flag (this should only affect installs that include dev dependencies, not people who are installing loglevel as a dependency of their project). The best solution to these is probably to drop grunt-template-jasmine-istanbul altogether -- we aren't really using the coverage information it gathers right now. The next alternative is to fork and vendor it like we did for grunt-template-jasmine-requirejs.
This PR addresses #63 (I think)
Do not merge this PR until the corresponding PR in gruntjs/grunt-contrib-jasmine#302 is merged and released onto npm.(Update: Upstream has been merged and AFAIK is available in an npm released version. Still possibly blocking on gruntjs/grunt-contrib-jasmine#300)This PR contains changes that will mesh with the new message passing system if it is introduced in
grunt-contrib-jasmine
.Bugs:
grunt test
fails on"nodeunit:outfile" - shouldWriteCoverage
, but manually running the single testgrunt test:outfile
produces no errors. My suspicion is that this is caused by subsequent tasks in multi task don't run their specs gruntjs/grunt-contrib-jasmine#299 and will be patched with moved resolveJasmine/jasminePromise function to fix scope issue gruntjs/grunt-contrib-jasmine#300 but will need further testing.grunt-contrib-jasmine
are releasedistanbul
package has been deprecated and this project may eventually need to move to the suggestednyc
package.