{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/225","labels_url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/225/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/225/events","html_url":"https://github.com/pytest-dev/pytest-django/pull/225","id":66010716,"number":225,"title":"Add a runner consumable by TEST_RUNNER","user":{"login":"joeyespo","id":634573,"avatar_url":"https://avatars.githubusercontent.com/u/634573?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyespo","html_url":"https://github.com/joeyespo","followers_url":"https://api.github.com/users/joeyespo/followers","following_url":"https://api.github.com/users/joeyespo/following{/other_user}","gists_url":"https://api.github.com/users/joeyespo/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyespo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyespo/subscriptions","organizations_url":"https://api.github.com/users/joeyespo/orgs","repos_url":"https://api.github.com/users/joeyespo/repos","events_url":"https://api.github.com/users/joeyespo/events{/privacy}","received_events_url":"https://api.github.com/users/joeyespo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-02T21:00:55Z","updated_at":"2015-07-26T06:29:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pytest-dev/pytest-django/pulls/225","html_url":"https://github.com/pytest-dev/pytest-django/pull/225","diff_url":"https://github.com/pytest-dev/pytest-django/pull/225.diff","patch_url":"https://github.com/pytest-dev/pytest-django/pull/225.patch"},"body":"This allows you to use Django's standard `manage.py test` to run your tests instead of making your collaborators switch to a new command. This can also help open source projects by allowing contributors to use the existing Django conventions they're already used to, since the alternative is that they run `manage.py test` normally and it shows \"\"\r\n\r\nThe implementation provides a light-weight translation of `manage.py test` options to `py.test` options. This includes `--verbosity 0` => `--quiet`, `--verbosity 2` => `--verbose`, `--failfast` => `--exitfirst`, and the upcoming Django 1.8 `--keepdb` => this project's `--nomigrations` equivalent.\r\n\r\nUse it by adding the following line to your Django settings.py:\r\n\r\n```py\r\nTEST_RUNNER = 'pytest_django.runner.PyTestRunner'\r\n```\r\n\r\nNow you can run the familiar `manage.py test` and switch to `py.test` when you're ready.\r\n"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/comments/124950330","html_url":"https://github.com/pytest-dev/pytest-django/pull/225#issuecomment-124950330","issue_url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/225","id":124950330,"user":{"login":"pelme","id":20529,"avatar_url":"https://avatars.githubusercontent.com/u/20529?v=3","gravatar_id":"","url":"https://api.github.com/users/pelme","html_url":"https://github.com/pelme","followers_url":"https://api.github.com/users/pelme/followers","following_url":"https://api.github.com/users/pelme/following{/other_user}","gists_url":"https://api.github.com/users/pelme/gists{/gist_id}","starred_url":"https://api.github.com/users/pelme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelme/subscriptions","organizations_url":"https://api.github.com/users/pelme/orgs","repos_url":"https://api.github.com/users/pelme/repos","events_url":"https://api.github.com/users/pelme/events{/privacy}","received_events_url":"https://api.github.com/users/pelme/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T06:29:53Z","updated_at":"2015-07-26T06:29:53Z","body":"Thanks for the patch! Anything that makes it easier for new people to get started using pytest is a great thing! :)\r\n\r\nIs there a way to make to command pass any arguments? It would be very bad if we're not able to pass all available arguments to pytest in a straightforward way.\r\n\r\nIf that cannot be solved, we should maybe think about putting a helpful text that is shown when pytest is invoked via manage.py that says something along the lines \"This test suite uses pytest to run tests, to use all features of py.test, run the py.test command directly\". I think we should make it clear that running `py.test` is the preferred way.\r\n\r\nWe also would need a test which uses `django_testdir` to invoke `manage.py test` and make sure it works."}}