{"id":13548947,"url":"https://github.com/mrhooray/gulp-mocha-phantomjs","last_synced_at":"2026-03-06T06:31:03.832Z","repository":{"id":15315034,"uuid":"18045013","full_name":"mrhooray/gulp-mocha-phantomjs","owner":"mrhooray","description":"run client-side Mocha tests with PhantomJS","archived":false,"fork":false,"pushed_at":"2017-11-20T11:15:24.000Z","size":58,"stargazers_count":65,"open_issues_count":7,"forks_count":35,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-23T04:32:03.330Z","etag":null,"topics":["gulp","javascript","mocha","mocha-phantomjs","phantomjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrhooray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-23T22:20:41.000Z","updated_at":"2023-04-13T14:26:48.000Z","dependencies_parsed_at":"2022-08-25T20:11:29.812Z","dependency_job_id":null,"html_url":"https://github.com/mrhooray/gulp-mocha-phantomjs","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/mrhooray/gulp-mocha-phantomjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Fgulp-mocha-phantomjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Fgulp-mocha-phantomjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Fgulp-mocha-phantomjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Fgulp-mocha-phantomjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrhooray","download_url":"https://codeload.github.com/mrhooray/gulp-mocha-phantomjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Fgulp-mocha-phantomjs/sbom","scorecard":{"id":664015,"data":{"date":"2025-08-11","repo":{"name":"github.com/mrhooray/gulp-mocha-phantomjs","commit":"b7ed21a4ba8d71ce8830e8a76c88000ba98cab6b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T17:17:04.842Z","repository_id":15315034,"created_at":"2025-08-21T17:17:04.842Z","updated_at":"2025-08-21T17:17:04.842Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30164590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gulp","javascript","mocha","mocha-phantomjs","phantomjs"],"created_at":"2024-08-01T12:01:16.369Z","updated_at":"2026-03-06T06:31:03.799Z","avatar_url":"https://github.com/mrhooray.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# [gulp](https://github.com/wearefractal/gulp)-mocha-phantomjs [![Build Status](https://travis-ci.org/mrhooray/gulp-mocha-phantomjs.svg?branch=master)](https://travis-ci.org/mrhooray/gulp-mocha-phantomjs) [![Build status](https://ci.appveyor.com/api/projects/status/4ngkp3ijx27alr5u?svg=true)](https://ci.appveyor.com/project/mrhooray/gulp-mocha-phantomjs)\n\u003e run client-side [Mocha](https://github.com/visionmedia/mocha) tests with [PhantomJS](https://github.com/ariya/phantomjs)\n\n\u003e a simple wrapper for [mocha-phantomjs-core](https://github.com/nathanboktae/mocha-phantomjs-core) library\n\n## Warning\nThis project is no longer maintained.\n\n## Installation\n### node\n```shell\n$ npm install gulp-mocha-phantomjs --save-dev\n```\n\n## Usage\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003ctitle\u003eMocha\u003c/title\u003e\n        \u003cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"\u003e\n        \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n        \u003clink rel=\"stylesheet\" href=\"../node_modules/mocha/mocha.css\" /\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cscript src=\"../node_modules/should/should.js\"\u003e\u003c/script\u003e\n        \u003cscript src=\"../node_modules/mocha/mocha.js\"\u003e\u003c/script\u003e\n        \u003cscript\u003emocha.setup('bdd')\u003c/script\u003e\n        \u003cscript\u003e\n            describe('true', function () {\n                it('should be true', function () {\n                    true.should.equal(true);\n                });\n            });\n        \u003c/script\u003e\n        \u003cscript\u003e\n            mocha.run();\n        \u003c/script\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n```javascript\nvar gulp = require('gulp');\nvar mochaPhantomJS = require('gulp-mocha-phantomjs');\n\ngulp.task('test', function () {\n    return gulp\n    .src('test/runner.html')\n    .pipe(mochaPhantomJS());\n});\n```\n\nReporter can be chosen via `reporter` option:\n\n```javascript\ngulp.task('test', function () {\n    return gulp\n    .src('test/runner.html')\n    .pipe(mochaPhantomJS({reporter: 'spec'}));\n});\n```\n\nOutput of mocha tests can be piped into a file via `dump` option:\n\n```javascript\ngulp.task('test', function () {\n    return gulp\n    .src('test/runner.html')\n    .pipe(mochaPhantomJS({reporter: 'spec', dump:'test.log'}));\n});\n```\n\nTest against remote by url:\n\n```javascript\ngulp.task('test', function () {\n    var stream = mochaPhantomJS();\n    stream.write({path: 'http://localhost:8000/index.html'});\n    stream.end();\n    return stream;\n});\n```\n\nSuppress PhantomJS’s console output:\n\n```javascript\ngulp.task('test', function() {\n    return gulp\n    .src('test/runner.html')\n    .pipe(mochaPhantomJS({\n        suppressStdout: true,\n        suppressStderr: true\n    }));\n});\n```\n\nPass options to mocha and/or PhantomJS:\n\n```javascript\ngulp.task('test', function () {\n    return gulp\n    .src('test/runner.html')\n    .pipe(mochaPhantomJS({\n        reporter: 'tap',\n        mocha: {\n            grep: 'pattern'\n        },\n        phantomjs: {\n            viewportSize: {\n                width: 1024,\n                height: 768\n            },\n            useColors:true\n        }\n    }));\n});\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrhooray%2Fgulp-mocha-phantomjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrhooray%2Fgulp-mocha-phantomjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrhooray%2Fgulp-mocha-phantomjs/lists"}