{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/PTVS/issues/1189","repository_url":"https://api.github.com/repos/Microsoft/PTVS","labels_url":"https://api.github.com/repos/Microsoft/PTVS/issues/1189/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/PTVS/issues/1189/comments","events_url":"https://api.github.com/repos/Microsoft/PTVS/issues/1189/events","html_url":"https://github.com/Microsoft/PTVS/issues/1189","id":143287175,"number":1189,"title":"Test Explorer fails to run tests from linked files","user":{"login":"wpalfi","id":18048248,"avatar_url":"https://avatars.githubusercontent.com/u/18048248?v=3","gravatar_id":"","url":"https://api.github.com/users/wpalfi","html_url":"https://github.com/wpalfi","followers_url":"https://api.github.com/users/wpalfi/followers","following_url":"https://api.github.com/users/wpalfi/following{/other_user}","gists_url":"https://api.github.com/users/wpalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/wpalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpalfi/subscriptions","organizations_url":"https://api.github.com/users/wpalfi/orgs","repos_url":"https://api.github.com/users/wpalfi/repos","events_url":"https://api.github.com/users/wpalfi/events{/privacy}","received_events_url":"https://api.github.com/users/wpalfi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-24T16:02:56Z","updated_at":"2016-03-29T08:38:00Z","closed_at":null,"body":"The Test Explorer shows tests of all modules in the project, even if the module is a linked file or a file in a subfolder. But it fails to run the tests when the file is not in the project root dir:\r\n\r\n```\r\nTest Name:\ttest_B\r\nTest Outcome:\tFailed\r\nResult StandardError:\t\r\nTraceback (most recent call last):\r\n  File \"C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO 14.0\\COMMON7\\IDE\\EXTENSIONS\\MICROSOFT\\PYTHON TOOLS FOR VISUAL STUDIO\\2.2\\visualstudio_py_testlauncher.py\", line 70, in <module>\r\n    main()\r\n  File \"C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO 14.0\\COMMON7\\IDE\\EXTENSIONS\\MICROSOFT\\PYTHON TOOLS FOR VISUAL STUDIO\\2.2\\visualstudio_py_testlauncher.py\", line 61, in main\r\n    __import__(opts.module)\r\nImportError: No module named 'test1'\r\n```\r\n\r\nWe are using CMake-generated projects, so the source files are always \"linked\".\r\n\r\n(VS2015/Update 1, PTVS 2.2.31124.00)"},"comment":{"url":"https://api.github.com/repos/Microsoft/PTVS/issues/comments/202778848","html_url":"https://github.com/Microsoft/PTVS/issues/1189#issuecomment-202778848","issue_url":"https://api.github.com/repos/Microsoft/PTVS/issues/1189","id":202778848,"user":{"login":"wpalfi","id":18048248,"avatar_url":"https://avatars.githubusercontent.com/u/18048248?v=3","gravatar_id":"","url":"https://api.github.com/users/wpalfi","html_url":"https://github.com/wpalfi","followers_url":"https://api.github.com/users/wpalfi/followers","following_url":"https://api.github.com/users/wpalfi/following{/other_user}","gists_url":"https://api.github.com/users/wpalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/wpalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpalfi/subscriptions","organizations_url":"https://api.github.com/users/wpalfi/orgs","repos_url":"https://api.github.com/users/wpalfi/repos","events_url":"https://api.github.com/users/wpalfi/events{/privacy}","received_events_url":"https://api.github.com/users/wpalfi/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T08:38:00Z","updated_at":"2016-03-29T08:38:00Z","body":"found similar issue #840 Running tests from UI does not support module structure without package"}}