{"id":20409093,"url":"https://github.com/tcorral/moonwalker","last_synced_at":"2025-06-11T18:40:14.756Z","repository":{"id":26381175,"uuid":"29830545","full_name":"tcorral/moonwalker","owner":"tcorral","description":"Tool to launch Selenese tests.","archived":false,"fork":false,"pushed_at":"2015-01-27T22:41:57.000Z","size":156,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-15T22:46:55.752Z","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/tcorral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-25T20:51:11.000Z","updated_at":"2021-12-25T14:49:34.000Z","dependencies_parsed_at":"2022-09-20T17:24:02.992Z","dependency_job_id":null,"html_url":"https://github.com/tcorral/moonwalker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2Fmoonwalker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2Fmoonwalker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2Fmoonwalker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2Fmoonwalker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcorral","download_url":"https://codeload.github.com/tcorral/moonwalker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241955038,"owners_count":20048405,"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-15T05:39:34.333Z","updated_at":"2025-03-05T02:41:45.419Z","avatar_url":"https://github.com/tcorral.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moonwalker\n\n\u003e Tool to launch Selenium IDE HTML files tests\n\nMoonwalker is a tool to execute Selenium IDE tests aka.Selenese tests.\n\n## Install\n\n```shell\nnpm install moonwalker --save\n```\n\n### Overview\nMoonwalker needs a Selenium server, standalone or grid, running to execute the tests, it will need to have installed the browsers you expect to launch.\nIf you want to execute the tests using Phantomjs you will need to execute GhostDriver server too.\n\n### API\nMoonwalker consists of one api exposing two different elements:\n\n- reporters\n- launcher\n\n#### reporters\ntype: `Object`\nIs an object that contains the available reporters that could be used in Moonwalker, now by default we have added the junit reporter.\nTo call the junit reporter you just need to call `moonwalker.reporters.junit`\n\n#### launcher\ntype: `Function`\nIs the function that will read and execute the Selenese tests. The following section explains the arguments needed to execute it properly.\n\n##### Arguments\n\n###### filepaths\ntype: `Array`\nRequired\n\nThis array is an array with the paths to all the Selenese test files.\n\nExample:\n\n```js\n[ 'path/to/my/selenese/tests/test1', 'path/to/my/selenese/tests/test2' ]\n```\n\n###### options\ntype: `Object`\nRequired\n\nThis configuration object is used to setup the environment where the test will be executed and needs at least...\n\n- selenium `Object`\n  - The host where is running the Selenium Server. `String`\n  - The port where is running the Selenium Server. `Number`\n- desiredCapabilities\n  - The [desired capabilities](https://code.google.com/p/selenium/wiki/DesiredCapabilities) where you want to execute the tests. `Array\u003cObject\u003e`\n\nExample:\n\n```js\n{\n  selenium: {\n    host: 'localhost',\n    port: 4444\n  },\n  desiredCapabilities: [\n    { browserName: 'chrome' }\n  ]\n}\n```\n\n##### reporter\ntype: `function`\nRequired\n\nThe reporter is a function that will log the info messages and that could perform especial actions to report the result of the tests.\nSee `reporters` section for more information.\n\n##### done\ntype: `function`\nRequired\n\nThe done function is a function that will be executed when all the tests are executed.\n\n### Usage Examples\n\n#### Default Options\nIn this example, the default options are used to compile two simple templates.\n\n```js\nmoonwalker.launcher(  ['path/to/selenese/tests/test1'],\n                      {\n                        selenium: {\n                            host: 'localhost',\n                            port: 4444\n                        },\n                        desiredCapabilities: [\n                            {\n                                browserName: 'firefox'\n                            }\n                        ]\n                      },\n                      moonwalker.reporters.junit('path/to/reports/junit_report.xml'),\n                      function (){\n                        console.log('Tests finished');\n                      });\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n\n* 0.1.1: First release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcorral%2Fmoonwalker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcorral%2Fmoonwalker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcorral%2Fmoonwalker/lists"}