{"action":"created","issue":{"url":"https://api.github.com/repos/TestArmada/magellan-mocha-plugin/issues/9","repository_url":"https://api.github.com/repos/TestArmada/magellan-mocha-plugin","labels_url":"https://api.github.com/repos/TestArmada/magellan-mocha-plugin/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/TestArmada/magellan-mocha-plugin/issues/9/comments","events_url":"https://api.github.com/repos/TestArmada/magellan-mocha-plugin/issues/9/events","html_url":"https://github.com/TestArmada/magellan-mocha-plugin/issues/9","id":158268559,"number":9,"title":"regex error when brackets in test title","user":{"login":"chenchaoyi","id":1484624,"avatar_url":"https://avatars.githubusercontent.com/u/1484624?v=3","gravatar_id":"","url":"https://api.github.com/users/chenchaoyi","html_url":"https://github.com/chenchaoyi","followers_url":"https://api.github.com/users/chenchaoyi/followers","following_url":"https://api.github.com/users/chenchaoyi/following{/other_user}","gists_url":"https://api.github.com/users/chenchaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/chenchaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenchaoyi/subscriptions","organizations_url":"https://api.github.com/users/chenchaoyi/orgs","repos_url":"https://api.github.com/users/chenchaoyi/repos","events_url":"https://api.github.com/users/chenchaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/chenchaoyi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-03T00:32:10Z","updated_at":"2016-06-07T18:08:12Z","closed_at":"2016-06-07T18:08:12Z","body":"The following test will be marked as PASS in magellan:\r\n```\r\nvar expect = require('chai').expect;\r\n\r\ndescribe('description....', function () {\r\n\r\n  it('test title (ohno)', function () {\r\n    expect(true).to.equal(false);\r\n  });\r\n\r\n});\r\n```\r\n\r\n```\r\n$ ./node_modules/.bin/magellan  --serial --max_test_attempts=1\r\nMagellan 8.7.1\r\nWill try to load configuration from default of ./magellan.json\r\nLoaded configuration from:  /Users/cchen21/WEC/misc/chico-e2e/magellan.json\r\nMagellan is creating temporary files at: /Users/cchen21/WEC/misc/chico-e2e/temp\r\nSauce configuration OK\r\n\r\nRunning 1 tests in serial mode with nodejs\r\n\r\n--> Serial mode, mock port:12000, running test: description.... test title (ohno) @nodejs\r\n\r\n\r\n  0 passing (3ms)\r\n\r\n\r\n(1 / 1) PASS  description.... test title (ohno) @nodejs\r\n\r\nChecking for zombie processes...\r\nNo zombies found.\r\n\r\n============= Suite Complete =============\r\n\r\n     Status: PASSED\r\n    Runtime: 4.8s\r\nTotal tests: 1\r\n Successful: 1 / 1\r\n```\r\n\r\nThe following test is giving regex parsing error:\r\n```\r\nvar expect = require('chai').expect;\r\n\r\ndescribe('description....', function () {\r\n\r\n  it('test title (ohno', function () {\r\n    expect(true).to.equal(false);\r\n  });\r\n\r\n});\r\n```\r\n\r\n```\r\n$ ./node_modules/.bin/magellan  --serial --max_test_attempts=1\r\nMagellan 8.7.1\r\nWill try to load configuration from default of ./magellan.json\r\nLoaded configuration from:  /Users/cchen21/WEC/misc/chico-e2e/magellan.json\r\nMagellan is creating temporary files at: /Users/cchen21/WEC/misc/chico-e2e/temp\r\nSauce configuration OK\r\n\r\nRunning 1 tests in serial mode with nodejs\r\n\r\n--> Serial mode, mock port:12000, running test: description.... test title (ohno @nodejs\r\n/Users/cchen21/WEC/misc/chico-e2e/node_modules/mocha/bin/_mocha:256\r\nif (program.grep) mocha.grep(new RegExp(program.grep));\r\n                             ^\r\n\r\nSyntaxError: Invalid regular expression: /description\\.\\.\\.\\. test title (ohno/: Unterminated group\r\n    at new RegExp (native)\r\n    at Object.<anonymous> (/Users/cchen21/WEC/misc/chico-e2e/node_modules/mocha/bin/_mocha:256:30)\r\n    at Module._compile (module.js:409:26)\r\n    at Object.Module._extensions..js (module.js:416:10)\r\n    at Module.load (module.js:343:32)\r\n    at Function.Module._load (module.js:300:12)\r\n    at Function.Module.runMain (module.js:441:10)\r\n    at startup (node.js:139:18)\r\n    at node.js:968:3\r\n\r\n(1 / 1) FAIL  description.... test title (ohno @nodejs\r\n\r\nChecking for zombie processes...\r\nNo zombies found.\r\n\r\n============= Failed Tests:  =============\r\n\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nFailed Test: description.... test title (ohno @nodejs\r\n # attempts: 1\r\n     output:\r\n17:30:29 /Users/cchen21/WEC/misc/chico-e2e/node_modules/mocha/bin/_mocha:256\r\n17:30:29 if (program.grep) mocha.grep(new RegExp(program.grep));\r\n17:30:29                              ^\r\n17:30:29 SyntaxError: Invalid regular expression: /description\\.\\.\\.\\. test title (ohno/: Unterminated group\r\n17:30:29     at new RegExp (native)\r\n17:30:29     at Object.<anonymous> (/Users/cchen21/WEC/misc/chico-e2e/node_modules/mocha/bin/_mocha:256:30)\r\n17:30:29     at Module._compile (module.js:409:26)\r\n17:30:29     at Object.Module._extensions..js (module.js:416:10)\r\n17:30:29     at Module.load (module.js:343:32)\r\n17:30:29     at Function.Module._load (module.js:300:12)\r\n17:30:29     at Function.Module.runMain (module.js:441:10)\r\n17:30:29     at startup (node.js:139:18)\r\n17:30:29     at node.js:968:3\r\n\r\n\r\n\r\n============= Suite Complete =============\r\n\r\n     Status: FAILED\r\n    Runtime: 4.8s\r\nTotal tests: 1\r\n Successful: 0 / 1\r\n     Failed: 1 / 1\r\n```\r\n\r\nWhile the following test is marked as failed as expected:\r\n```\r\nvar expect = require('chai').expect;\r\n\r\ndescribe('description....', function () {\r\n\r\n  it('test title ohno', function () {\r\n    expect(true).to.equal(false);\r\n  });\r\n\r\n});\r\n```\r\n```\r\n$ ./node_modules/.bin/magellan  --serial --max_test_attempts=1\r\nMagellan 8.7.1\r\nWill try to load configuration from default of ./magellan.json\r\nLoaded configuration from:  /Users/cchen21/WEC/misc/chico-e2e/magellan.json\r\nMagellan is creating temporary files at: /Users/cchen21/WEC/misc/chico-e2e/temp\r\nSauce configuration OK\r\n\r\nRunning 1 tests in serial mode with nodejs\r\n\r\n--> Serial mode, mock port:12000, running test: description.... test title ohno @nodejs\r\n\r\n\r\n  description....\r\n    1) test title ohno\r\n\r\n\r\n  0 passing (11ms)\r\n  1 failing\r\n\r\n  1) description.... test title ohno:\r\n\r\n      AssertionError: expected true to equal false\r\n      + expected - actual\r\n\r\n      -true\r\n      +false\r\n\r\n      at Context.<anonymous> (try/credit-card.js:6:21)\r\n\r\n\r\n\r\n\r\n(1 / 1) FAIL  description.... test title ohno @nodejs\r\n\r\nChecking for zombie processes...\r\nNo zombies found.\r\n\r\n============= Failed Tests:  =============\r\n\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nFailed Test: description.... test title ohno @nodejs\r\n # attempts: 1\r\n     output:\r\n17:31:19   description....\r\n17:31:19     1) test title ohno\r\n17:31:19   0 passing (11ms)\r\n17:31:19   1 failing\r\n17:31:19   1) description.... test title ohno:\r\n17:31:19       AssertionError: expected true to equal false\r\n17:31:19       + expected - actual\r\n17:31:19       -true\r\n17:31:19       +false\r\n17:31:19       at Context.<anonymous> (try/credit-card.js:6:21)\r\n\r\n\r\n\r\n============= Suite Complete =============\r\n\r\n     Status: FAILED\r\n    Runtime: 4.8s\r\nTotal tests: 1\r\n Successful: 0 / 1\r\n     Failed: 1 / 1\r\n```\r\n\r\nOriginally found by @william-chen\r\n"},"comment":{"url":"https://api.github.com/repos/TestArmada/magellan-mocha-plugin/issues/comments/224365243","html_url":"https://github.com/TestArmada/magellan-mocha-plugin/issues/9#issuecomment-224365243","issue_url":"https://api.github.com/repos/TestArmada/magellan-mocha-plugin/issues/9","id":224365243,"user":{"login":"chenchaoyi","id":1484624,"avatar_url":"https://avatars.githubusercontent.com/u/1484624?v=3","gravatar_id":"","url":"https://api.github.com/users/chenchaoyi","html_url":"https://github.com/chenchaoyi","followers_url":"https://api.github.com/users/chenchaoyi/followers","following_url":"https://api.github.com/users/chenchaoyi/following{/other_user}","gists_url":"https://api.github.com/users/chenchaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/chenchaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenchaoyi/subscriptions","organizations_url":"https://api.github.com/users/chenchaoyi/orgs","repos_url":"https://api.github.com/users/chenchaoyi/repos","events_url":"https://api.github.com/users/chenchaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/chenchaoyi/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T18:08:12Z","updated_at":"2016-06-07T18:08:12Z","body":"fixed by #10 "}}
{"actor":{"display_login":"chenchaoyi"}}