Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, so there's how to get it working with proper TeamCity integration:</p> <p>Presuming you have TeamCity installed with at least 1 build agent available</p> <p>1) Configure your build agent to execute </p> <pre><code>manage.py test </code></pre> <p>2) Download and install this plugin for TC <a href="http://pypi.python.org/pypi/teamcity-messages" rel="noreferrer">http://pypi.python.org/pypi/teamcity-messages</a></p> <p>3) You'll have to provide your custom test runner for plugin in (2) to work. It can be straight copy of run_tests from django.test.simple, with only one slight modification: replace line where test runner is called with TeamcityTestRunner, so insted of </p> <pre><code>def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]): ... result = unittest.TextTestRunner(verbosity=verbosity).run(suite) </code></pre> <p>use this:</p> <pre><code>def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]): ... result = TeamcityTestRunner().run(suite) </code></pre> <p>You'll have to place that function into a file in your solution, and specify a custome test runner, using Django's TEST_RUNNER configuration property like this:</p> <pre><code>TEST_RUNNER = 'my_site.file_name_with_run_tests.run_tests' </code></pre> <p>Make sure you reference all required imports in your <strong>file_name_with_run_tests</strong></p> <p>You can test it by running </p> <pre><code>./manage.py test </code></pre> <p>from command line and noticing that output has changed and now messages like</p> <pre><code>#teamcity.... </code></pre> <p>appearing in it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload