{"id":22025714,"url":"https://github.com/dwango-js/grunt-flexunit","last_synced_at":"2025-03-23T11:12:24.203Z","repository":{"id":31596076,"uuid":"35160920","full_name":"dwango-js/grunt-flexunit","owner":"dwango-js","description":"Grunt plugin for flexunit server","archived":false,"fork":false,"pushed_at":"2015-05-12T06:18:26.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-28T17:23:43.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwango-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-06T13:43:02.000Z","updated_at":"2015-05-06T14:16:33.000Z","dependencies_parsed_at":"2022-09-20T01:50:50.875Z","dependency_job_id":null,"html_url":"https://github.com/dwango-js/grunt-flexunit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fgrunt-flexunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fgrunt-flexunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fgrunt-flexunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fgrunt-flexunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwango-js","download_url":"https://codeload.github.com/dwango-js/grunt-flexunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245090877,"owners_count":20559298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-30T07:19:13.454Z","updated_at":"2025-03-23T11:12:24.171Z","avatar_url":"https://github.com/dwango-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/dwango-js/grunt-flexunit.svg)](https://travis-ci.org/dwango-js/grunt-flexunit)\n\n\ngrunt-flexunit\n==============\n\n\nGrunt plugin for flexunit-server.\n\n\n\nAdditional Requisites\n----------\n\nIn addition to npm module dependencies, following things are required to run\n`grunt-flexunit`.\n\n* Browser you want to use to open `swf` files\n\n  Currently only `Firefox` is supported\n\n* Flash Player plugin for the browser\n* `xvfb-run` (optional: see doc of `options.useXvfb` for details)\n\n\n\nThe \"flexunit\" task\n-------------------\n\n\n### Overview ###\n\n```js\ngrunt.initConfig({\n    flexunit: {\n        test: {\n            options: {\n                port: 0,\n                host: '127.0.0.1',\n                reporter: 'Junit',\n                output: 'a.xml',\n                swfFiles: ['http://localhost/swf/player_zero/a.swf'],\n                browser: 'Firefox'\n            }\n        }\n    }\n});\n```\n\n### Options\n\n\n#### options.port\n\nType: `Int`\nDefault value: `0`\n\nA int value of port to listen to, defaults to 0.\nThe value 0 is a bit special: in this case, server will choose ports randomly\nand try and retry listening to them until it succeed to listen.\n\n\n#### options.host\n\nType: `String`\nDefault value: `null`\n\nA string value or `null` that is used as a hostname the server listen to.\nIf set to `null` accept connections directed to any address.\n\n\n#### options.reporter\n\nType: `String`\nDefault value: `'Junit'`\n\nA string value of reporter name to use.\nSee document of `flexunit-server` to find available reporters.\n\n\n#### options.output\n\nType: `String`\nDefault: `null`\n\nA string value of filename the reporter writes the result to.\nSet to null to stdout result.\n\n\n#### options.httpServerRoot\n\nType: `String`\nDefault: `process.cwd()`\n\nA string of directory path which http server should use as a root.\nBy default it will be the current directory where grunt is run.\n\n\n\n#### options.swfFiles\n\nType: `Array`\nDefault: `[]`\n\nAn Array of URLs of flexunit swf files to run.\nShould be relative to `options.httpServerRoot`.\n\n\n\n#### options.browser\n\nType: `String`\nDefault: `'Firefox'`\n\nThe browser to open `swfFiles`.\n\n\n#### options.useXvfb\n\nType: `String`\nDefault: `'auto'`\n\nMust be either `'auto'`, `'always'`, `'yes'`, `'never'`, `'no'`.\n\nA string that decides whether the browser should be run within `xvfb-run`.\n\nWhen this option is enabled `xvfb-run` command is required, which is usually\nincluded in `xvfb` or `X Virtual FrameBuffer` package.\nFlexunit can run in headless when this option is enabled.\nWhen set to `'auto'`, use xvfb if\n  * `$DISPLAY` is not set\n  * `xvfb-run` is found\n\n\n\n\nPort to Connect\n---------------\n\nAs described above, the port number where flexunit-server listens will be\ndecided randomly when `0` is specified as a `port` option.  The port\nflexunit-server actually listens will be told to swf files by appending\n`ciport=\u003cport\u003e` parameter to the URLs, so the swf files should get this value\nfor example by means of `loaderInfo.paramters` object.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwango-js%2Fgrunt-flexunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwango-js%2Fgrunt-flexunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwango-js%2Fgrunt-flexunit/lists"}