TeamCity Code Quality Tracking Features

Deliver stable, reliable software faster with TeamCity’s code quality features. Verify each change, provide feedback quickly, and streamline the management of issues as they are found.

Assess your code quality

With TeamCity’s code quality features, you can assess your code's functionality, readability, security, and maintainability each time your pipeline runs and configure steps to fail automatically when an issue is discovered.

Accelerate test feedback

Shortening the feedback cycle is central to an effective CI/CD process – the sooner you’re alerted to a problem, the more efficiently you can address it. That’s why TeamCity prioritizes rapid feedback that provides the insights you need.

Implement quality gates

Verify your code changes before committing them to your version control system. Once the code passes all the tests, TeamCity can then automatically merge the changes into a designated branch.

Assess and Enhance Your Code Quality

TeamCity comes with rich, built-in functionality that allows you to track and enhance your code quality. From supporting a wide range of testing frameworks to code inspection, TeamCity helps you deliver quality code to end users faster.

Automated testing frameworks

With native support for a wide range of testing frameworks and on-the-fly reporting, TeamCity enables automated testing as part of your CI/CD pipeline.

Supported testing frameworks include:

  • .NET testing frameworks, including NUnit, MSTest, MSPec, and Gallio
  • Java testing frameworks, including Junit and TestNG
  • PyTest
  • Jest
  • Mocha
  • Test::Unit
  • RSpec

Rich customization options

If the tool you’re using is not already supported, explore TeamCity’s extensive plugin ecosystem. You can also create new plugins for a tool of your choice with TeamCity’s API or integrate custom scripts to your build and test pipeline.

Code coverage reporting

By monitoring the extent of your automated test coverage, you can ensure a baseline of automated test coverage is maintained each time your CI/CD pipeline runs.

TeamCity integrates with dotCover, NCover, and PartCover for .NET and supports Java code coverage reporting via IntelliJ IDEA, EMMA, and JaCoCo out of the box. For other code coverage tools, import the results and use the data to determine the success or failure of a build step. Please check out our documentation for more information about configuring Java code coverage and .NET code coverage in TeamCity .

Static analysis and code inspections

TeamCity comes bundled with code inspection tools to provide you with immediate feedback on various issues, from readability, maintainability, and common code smells to potential performance issues and bugs.

Run code inspections with ReSharper (for .NET languages , JavaScript, HTML, and CSS), IntelliJ IDEA (for Java, JavaScript, HTML, and XML), Qodana, or FxCop as part of your automated build and test pipeline.

Ready to Take Your Code Quality to the Next Level?

TeamCity is all about helping you to deliver stable, reliable software faster. Shorten the feedback loop and ship your code faster.

Choose your TeamCity format:

Duplicate code analysis

Duplicate code is a maintenance headache. That’s why TeamCity comes bundled with IntelliJ IDEA and ReSharper, so you can check your Java and .NET code straight from your IDE. Check for copy-and-paste issues as you write, and prevent changes containing duplicates from being merged and shared with others in your team.

Speed Up Test Feedback

Shorten the feedback loop for a more effective and efficient CI/CD process. TeamCity provides all the necessary instruments to help you get the insights you need.

Comprehensive test reporting

View the outcome of each stage of your CI/CD pipeline and explore details of test results, code inspections, duplicate analysis, and code coverage assessments from the TeamCity web app. Use test metadata and build logs to quickly identify failure causes.

Commit status publisher

View the results of your latest build without leaving your VCS hosting system. Available for GitHub, GitLab, Bitbucket, Azure DevOps, Perforce Helix Swarm, and more, TeamCity’s commit status publisher provides real-time build and test updates for each commit.

Parallel and high-risk tests

Maximize throughput during your automated test phases with intelligent test parallelization. TeamCity calculates the most efficient way to distribute the workload, based on data from previous test runs.

Deliver Quality Code Faster

Once you’ve identified the root cause of a problem, it’s time to take action. Create a streamlined CI/CD pipeline with TeamCity’s comprehensive UI and rich build functionality.

Build failure conditions

TeamCity offers a wide range of build failure conditions, so you can tailor your pipeline according to your team’s needs.

Flaky test detection

Use TeamCity’s flaky test feature to identify unstable tests and ignore the results so that builds can continue until the tests are fixed.

Investigation auto assigner

Let TeamCity identify the best person to investigate each build, problem, or failed test, so you can focus on writing great code.

Automatic merge

When everything goes smoothly, let TeamCity merge your feature branch into the mainline for you! You can even trigger another pipeline to build and test your main branch.

Seamless Integration with Qodana

Qodana is a code quality platform powered by the JetBrains static code analysis. It triggers analysis on the CI side, gives instant feedback within the CI tool or IDE, and helps development teams follow agreed-upon quality standards. With Qodana, teams deliver readable, maintainable, and secure secure code – and ship their software with confidence.

To learn more, please refer to the Qodana section in our documentation.

FAQ

What is code quality?

Code quality refers to more than just the number of bugs in your software; it’s also the readability and maintainability of your code. The higher your code quality, the more likely your software will behave as expected both now and as more functionality is added in the future.

Which tools are used to track code quality?

Some of the most popular code quality tracking tools are SonarQube and Crucible, among many others. TeamCity offers a wide range of code quality tracking tools and seamless integrations with these external products.

Why is code quality important?

When code is poorly structured or overly complex, code behavior becomes more difficult to test and the code becomes harder to maintain. This increases the risk of bugs and makes it harder for teams to deliver new features.

Are TeamCity’s code quality tracking tools free?

Unlike third-party tools that require an additional subscription, all code quality tracking tools that are bundled with TeamCity are free and come with a regular TeamCity subscription, including TeamCity Professional, the free on-premises edition.

Get started with TeamCity

Powerful CI/CD tool with built-in code quality tracking features