Giter Club home page Giter Club logo

Comments (6)

carlpett avatar carlpett commented on June 25, 2024 1

No, it should work, but apparently it does not. Great that the workaround works for you, though!
I'll fix the parameter expansion as soon as possible.

from xunit-teamcity.

carlpett avatar carlpett commented on June 25, 2024

Hi,
Sorry to hear that! Could you share your folder structure and the value of the "Assemblies containing tests" parameter?

from xunit-teamcity.

lvthillo avatar lvthillo commented on June 25, 2024

@carlpett Thank you for the quick reply.
This is the input of our 'Assemblies containing tests:' parameter
%system.teamcity.build.checkoutDir%\src\app.Test\bin\Debug\name.Web.Test.dll

The environment variable exists. We're using it in other buildsteps too and we're able to 'cd' to that specific folder.

I don't really know what you mean with the folder structure. But I can tell you the following:
Path/to/workspace/:

src/
tools/
lib/
...

Inside src/ we have a test/ folder. After the execution of the job which builds our unittests, there is a bin/Debug folder in it which contains our test.dll.

from xunit-teamcity.

carlpett avatar carlpett commented on June 25, 2024

Hm, it looks like I might not be expanding variables in that parameter, which would explain it. However, the search is done relative to the current working directory, which is probably identical to %system.teamcity.build.checkoutDir%, could just try to just remove that and specify src\app.Test\bin\Debug\name.Web.Test.dll instead?

from xunit-teamcity.

lvthillo avatar lvthillo commented on June 25, 2024

@carlpett Okay, that was the issue. My apologizes! Thank you very much.

from xunit-teamcity.

osya avatar osya commented on June 25, 2024

I have the same issue:

Step 5/6: Run xUnit tests via `xUnit` runner (xUnit)
[14:55:37][Step 5/6] Runner parameters { Version = 2.4.x, runtime = .NET 4.5, platform = AnyCPU/MSIL}
[14:55:37][Step 5/6] Number of parallel processes is set to: 1
[14:55:37][Step 5/6] Starting test runner at C:\TeamCity\buildAgent\tools\xunit-runner\bin\2.4.x\xunit.console.exe
[14:55:37][Step 5/6] No assemblies were matched - no tests will be run!

from xunit-teamcity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.