{"action":"created","issue":{"url":"https://api.github.com/repos/magwo/elevatorsaga/issues/80","labels_url":"https://api.github.com/repos/magwo/elevatorsaga/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/magwo/elevatorsaga/issues/80/comments","events_url":"https://api.github.com/repos/magwo/elevatorsaga/issues/80/events","html_url":"https://github.com/magwo/elevatorsaga/pull/80","id":58454595,"number":80,"title":"Automatic testing with Selenium and Ranking generation","user":{"login":"rachkoud","id":1620056,"avatar_url":"https://avatars.githubusercontent.com/u/1620056?v=3","gravatar_id":"","url":"https://api.github.com/users/rachkoud","html_url":"https://github.com/rachkoud","followers_url":"https://api.github.com/users/rachkoud/followers","following_url":"https://api.github.com/users/rachkoud/following{/other_user}","gists_url":"https://api.github.com/users/rachkoud/gists{/gist_id}","starred_url":"https://api.github.com/users/rachkoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachkoud/subscriptions","organizations_url":"https://api.github.com/users/rachkoud/orgs","repos_url":"https://api.github.com/users/rachkoud/repos","events_url":"https://api.github.com/users/rachkoud/events{/privacy}","received_events_url":"https://api.github.com/users/rachkoud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-21T10:40:03Z","updated_at":"2015-02-21T19:08:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/magwo/elevatorsaga/pulls/80","html_url":"https://github.com/magwo/elevatorsaga/pull/80","diff_url":"https://github.com/magwo/elevatorsaga/pull/80.diff","patch_url":"https://github.com/magwo/elevatorsaga/pull/80.patch"},"body":"Hi, you did an awesome job by creating this challenging game!\r\n\r\nI added Gulp to test automatically all solutions or a solution with Selenium and generate a ranking based on the total percent of all challenges.\r\n\r\nI completed the README.md : \r\n\r\n### Testing\r\n\r\nTo test your solution automatically with Selenium you must install the node packages :\r\n```Shell\r\nnpm install\r\n```\r\n\r\nThen, you must install [ChromeDriver](https://code.google.com/p/selenium/wiki/ChromeDriver), with OS X, you can use brew : \r\n\r\n```Shell\r\nbrew install chromedriver\r\n```\r\n\r\nTo generate the stats and test your solution automatically, you can run this command : \r\n\r\n```Shell\r\ngulp --challenges 1,2 --numberOfTestsPerChallenge 10 --solutionToTest alber70g.solution.js --timeScale 21\r\n```\r\n**Parameters**\r\n\r\n* **--challenges** (default : 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17) : challenges to run, separated with a comma.\r\n* **--numberOfTestsPerChallenge** (default : 1) : number of test to execute for each challenge.\r\n* **--solutionToTest** (default : null, all solutions are tested) : solution to test (must be in the folder solutions/working with the extension .solution.js).\r\n* **--timeScale** (default : 21) : time scale (speed), must be in that range 1, 2, 3, 5, 8, 13, 21.\r\n\r\nAfter the solution test, a stats file is written in : \r\n\r\n```Shell\r\nWrite stats : solutions/working/username.solution.stats.json\r\n```\r\n\r\nNote : If you run gulp without any parameters, it will test all solutions, which take approximativaly 6 hours for 29 solutions.\r\n\r\n### Ranking\r\nA ranking file, based on the total percent of each challenge, can be generated in solutions/working/ranking.md by using all solutions/working/*.solution.stats.json : \r\n\r\n```Shell\r\ngulp ranking\r\n```\r\n\r\nSo if you want to calculate your ranking, you can test your solution automatically and then generate the ranking.\r\n\r\nNote : Each challenge of each solution must be tested the same number of times.\r\n\r\nThe ranking of [all solutions](https://github.com/magwo/elevatorsaga/wiki/Solutions) has been generated : [See ranking](https://github.com/rachkoud/elevatorsaga/blob/master/solutions/working/ranking.md)"},"comment":{"url":"https://api.github.com/repos/magwo/elevatorsaga/issues/comments/75387076","html_url":"https://github.com/magwo/elevatorsaga/pull/80#issuecomment-75387076","issue_url":"https://api.github.com/repos/magwo/elevatorsaga/issues/80","id":75387076,"user":{"login":"efouts","id":1428145,"avatar_url":"https://avatars.githubusercontent.com/u/1428145?v=3","gravatar_id":"","url":"https://api.github.com/users/efouts","html_url":"https://github.com/efouts","followers_url":"https://api.github.com/users/efouts/followers","following_url":"https://api.github.com/users/efouts/following{/other_user}","gists_url":"https://api.github.com/users/efouts/gists{/gist_id}","starred_url":"https://api.github.com/users/efouts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efouts/subscriptions","organizations_url":"https://api.github.com/users/efouts/orgs","repos_url":"https://api.github.com/users/efouts/repos","events_url":"https://api.github.com/users/efouts/events{/privacy}","received_events_url":"https://api.github.com/users/efouts/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T19:08:05Z","updated_at":"2015-02-21T19:08:05Z","body":"Should this be pointing to the live site or a config value for a local one? https://github.com/rachkoud/elevatorsaga/blob/master/stats.js#L238"}}