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 6824495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:54:30+00:00 2026-05-26T21:54:30+00:00

I have installed Sonar and configured it to analyze our (.NET) projects (using Sonar-Runner).

  • 0

I have installed Sonar and configured it to analyze our (.NET) projects (using Sonar-Runner). Everything works great, except the tests (MsTest). I’ve googled around, spent quite some time just trying, but no success. Each time I run sonar-runner, I see the same line in the output:

Gallio won't execute as there are no test projects

I’ve even created a new solution with 2 projects:

  • TestProject => The ‘main’ project, has only 1 class
  • TestProject.UnitTests => has some simple unit tests on the class in the TestProject

In my sonar.properties file for the solution I have the following line:

sonar.dotnet.visualstudio.testProjectPattern=*.UnitTests

Running the analysis, everything works fine and I get result, except again: “no test projects found.”

Actually I’ve tried many things with this property, but none have been successful.
I also tried with a direct path to the dll, with the property:

sonar.dotnet.test.assemblies=D:\\Projects\\TestProject\\TestProject.UnitTests\\bin\\Debug\\TestProject.UnitTests.dll

and some other paths (relative, etc), but still: No test projects found.

Is there anyone who has some experience with this and can help me out with this problem?

PS. When I run Gallio on it self, it works, tests get executed, etc.
Also, the path to Gallio in the Sonar properties is correct.

  • 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-05-26T21:54:30+00:00Added an answer on May 26, 2026 at 9:54 pm

    According to the source code (thanks to grepcode.com) for the Sonar C-sharp plugin, a project qualifies as a test project if its assembly name matches the testProjectPattern, which defaults to “*.Tests”. It can also be set in sonar-project.properties, like this:

    sonar.donet.visualstudio.testProjectPattern=*.UnitTests
    

    Note the spelling error (donet)…(!)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem I have just installed the Sonar Jenkins plugin. I went into my configured
I have installed and setup RubyCAS-Server and RubyCAS-Client on my machine. Login works perfectly
We have installed OpenDataKit (ODK) Aggregate and we are using a MySQL Database. I
I have installed wxWidgets 2.9.3 on Ubuntu 10.10 using ../configure --with-gtk I am using
I have installed rvm (mutiuser option) and ruby using rvm install on my test
I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I have installed zend server on my local system.I created one project folder using
I have installed Visual Web Developer 2008, the .net framework 3.5 but when i
I have installed some error logging onto my ASP.NET MVC site and I have
I have installed SSL for my website http://digitalexperts.net . The website is based on

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.