{"action":"created","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/1275","repository_url":"https://api.github.com/repos/nunit/nunit","labels_url":"https://api.github.com/repos/nunit/nunit/issues/1275/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/1275/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/1275/events","html_url":"https://github.com/nunit/nunit/issues/1275","id":134811665,"number":1275,"title":"parameters to configure test runner so that it runs in ui thread - calling thread","user":{"login":"jmecosta","id":1041352,"avatar_url":"https://avatars.githubusercontent.com/u/1041352?v=3","gravatar_id":"","url":"https://api.github.com/users/jmecosta","html_url":"https://github.com/jmecosta","followers_url":"https://api.github.com/users/jmecosta/followers","following_url":"https://api.github.com/users/jmecosta/following{/other_user}","gists_url":"https://api.github.com/users/jmecosta/gists{/gist_id}","starred_url":"https://api.github.com/users/jmecosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmecosta/subscriptions","organizations_url":"https://api.github.com/users/jmecosta/orgs","repos_url":"https://api.github.com/users/jmecosta/repos","events_url":"https://api.github.com/users/jmecosta/events{/privacy}","received_events_url":"https://api.github.com/users/jmecosta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nunit/nunit/labels/is:question","name":"is:question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-19T09:17:08Z","updated_at":"2016-04-07T20:28:20Z","closed_at":"2016-04-07T15:23:03Z","body":"hi,\r\n\r\nwe have adapted the visual studio adapter, to run nunit tests inside our product. we have a requirement now that we need to test some ui code, and for this to happen we need,\r\n . run tests in same appdomain as our product\r\n . run tests in the same thread, UI with STA set.\r\n\r\nFor the appdomain, we fixed it in the test adapter. For the thread it is a bit harder and i am ensure about the parameters that we can use to set this in the Nunit engine. we look at the doc about the RequiresThread Attribute but from reading looks like the engine always creates a thread, and this we would like to avoid.\r\n\r\nis this possible?\r\n\r\nthanks in advance.\r\n\r\nbr,\r\njorge costa"},"comment":{"url":"https://api.github.com/repos/nunit/nunit/issues/comments/207075953","html_url":"https://github.com/nunit/nunit/issues/1275#issuecomment-207075953","issue_url":"https://api.github.com/repos/nunit/nunit/issues/1275","id":207075953,"user":{"login":"CharliePoole","id":2678661,"avatar_url":"https://avatars.githubusercontent.com/u/2678661?v=3","gravatar_id":"","url":"https://api.github.com/users/CharliePoole","html_url":"https://github.com/CharliePoole","followers_url":"https://api.github.com/users/CharliePoole/followers","following_url":"https://api.github.com/users/CharliePoole/following{/other_user}","gists_url":"https://api.github.com/users/CharliePoole/gists{/gist_id}","starred_url":"https://api.github.com/users/CharliePoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharliePoole/subscriptions","organizations_url":"https://api.github.com/users/CharliePoole/orgs","repos_url":"https://api.github.com/users/CharliePoole/repos","events_url":"https://api.github.com/users/CharliePoole/events{/privacy}","received_events_url":"https://api.github.com/users/CharliePoole/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T20:28:20Z","updated_at":"2016-04-07T20:28:20Z","body":"Good luck. Feel free to come up with a test that we should try to make run in our new code. The way I usually test such things is to record the thread id in a onetimesetup and then have every test check that it is running on the same thread."}}