{"action":"created","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/1674","repository_url":"https://api.github.com/repos/mesonbuild/meson","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/1674/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/1674/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/1674/events","html_url":"https://github.com/mesonbuild/meson/issues/1674","id":223971715,"node_id":"MDU6SXNzdWUyMjM5NzE3MTU=","number":1674,"title":"docs for test suite","user":{"login":"rhd","id":3422847,"node_id":"MDQ6VXNlcjM0MjI4NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/3422847?v=4","gravatar_id":"","url":"https://api.github.com/users/rhd","html_url":"https://github.com/rhd","followers_url":"https://api.github.com/users/rhd/followers","following_url":"https://api.github.com/users/rhd/following{/other_user}","gists_url":"https://api.github.com/users/rhd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhd/subscriptions","organizations_url":"https://api.github.com/users/rhd/orgs","repos_url":"https://api.github.com/users/rhd/repos","events_url":"https://api.github.com/users/rhd/events{/privacy}","received_events_url":"https://api.github.com/users/rhd/received_events","type":"User","site_admin":false},"labels":[{"id":575908313,"node_id":"MDU6TGFiZWw1NzU5MDgzMTM=","url":"https://api.github.com/repos/mesonbuild/meson/labels/documentation","name":"documentation","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-24T22:40:26Z","updated_at":"2018-08-22T10:56:23Z","closed_at":"2018-04-14T19:17:03Z","author_association":"CONTRIBUTOR","body":"I noticed that the testing suite logic has changed. I can no longer run `ninja <suitename>` but instead I have to run `mesontest` - which is OK even though I will miss using `ninja` for the simple cases besides `ninja test`.\r\n\r\nAnyway, I can't seem to find the docs for test suites anywhere.\r\n\r\nNot [here](https://github.com/mesonbuild/meson/wiki/Reference-manual#test) or [here](https://github.com/mesonbuild/meson/wiki/Unit-tests).\r\n\r\nI used to be able to type `ninja test-app` to run all of the app tests or `ninja-app-test1` to run just the test called `app-test1` - these were defined in the `suite` section of the `test()`.\r\n\r\nThis was my old logic:\r\n\r\n```meson\r\nruntest = find_program('runTest')\r\n\r\ndefaultTimeout = 600\r\n\r\ntests = [\r\n    ['test1', defaultTimeout],\r\n]\r\n\r\nforeach test: tests\r\n    testname = test[0]\r\n    timeout = test[1]\r\n    longtestname = 'app-' + testname\r\n\r\n    test(longtestname, runtest,\r\n        args: ['-t', testname, '-l', exedir],\r\n        suite: ['app', longtestname],\r\n        timeout: timeout,\r\n        is_parallel: false,\r\n    )\r\nendforeach\r\n```"},"comment":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/comments/414993474","html_url":"https://github.com/mesonbuild/meson/issues/1674#issuecomment-414993474","issue_url":"https://api.github.com/repos/mesonbuild/meson/issues/1674","id":414993474,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDk5MzQ3NA==","user":{"login":"harikumar6264","id":36724225,"node_id":"MDQ6VXNlcjM2NzI0MjI1","avatar_url":"https://avatars0.githubusercontent.com/u/36724225?v=4","gravatar_id":"","url":"https://api.github.com/users/harikumar6264","html_url":"https://github.com/harikumar6264","followers_url":"https://api.github.com/users/harikumar6264/followers","following_url":"https://api.github.com/users/harikumar6264/following{/other_user}","gists_url":"https://api.github.com/users/harikumar6264/gists{/gist_id}","starred_url":"https://api.github.com/users/harikumar6264/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harikumar6264/subscriptions","organizations_url":"https://api.github.com/users/harikumar6264/orgs","repos_url":"https://api.github.com/users/harikumar6264/repos","events_url":"https://api.github.com/users/harikumar6264/events{/privacy}","received_events_url":"https://api.github.com/users/harikumar6264/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T10:56:23Z","updated_at":"2018-08-22T10:56:23Z","author_association":"NONE","body":"I am facing \"No suitable tests defined\".\r\nCan you please explaine how to use --suite option in meson with example\r\nHow to add test cases to suite"}}
{"actor":{"display_login":"harikumar6264"}}