Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9268159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:44:20+00:00 2026-06-18T14:44:20+00:00

We have recently moved away from our custom test runner / discovery tool in

  • 0

We have recently moved away from our custom test runner / discovery tool in favor of py.test. For proper unit test reporting when running under teamcity there exists a pytest plugin: https://github.com/JetBrains/teamcity-python

When installed with:

python setup.py install

The plugin is discovered correctly by pytest. However, we don’t want to install pytest & this plugin on our build machines. Instead we would rather have them packaged as part of our projects “tools” directory.

How do install / configure py.test to “discover” this plugin. We have tried adding pytest_plugins = "teamcity" with several variations to the setup.cfg file of pytest with no success.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:44:21+00:00Added an answer on June 18, 2026 at 2:44 pm

    There is no “pytest_plugins” configuration variable (see output at the end of “py.test -h). However, the env var “PYTEST_PLUGINS” contains comma-separated python import paths. So if you plugin is in “teamcity/util/myplugin.py” you would set it like this:

    export PYTEST_PLUGINS=teamcity.util.myplugin
    

    You can also use a command line option “-p teamcity.util.myplugin” to achieve a similar effect. And then add it to your setup.cfg’s section:

    [pytest]
    addopts = -p teamcity.util.myplugin
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have recently moved some data from an SQL Database instance to another one
can anyone help. I have recently moved servers, its IIS7 rather that our previous
I have moved recently to a new version of eclipse 3.5 from 3.2.I dont
I have recently moved my app from a linux machine to windows, and I
We recently moved our database from our SQL Server 2005 server to our SQL
I have recently moved from Eclipse 3.4 to 3.5. In 3.4 I had a
We have recently moved to a new web server (from IIS6 to IIS7.5) and
So we have recently moved much of our business logic into a service layer,
I have recently moved our TFS 2010 server to new server, when I'm trying
I have recently moved our TFS 2010 server to new server, when I'm trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.