Giter VIP home page Giter VIP logo

Comments (8)

adamralph avatar adamralph commented on August 28, 2024

It seems to be something to do with TeamCity's auto detection of test execution. The build logs indicate that all 928 unit tests are being run plus 52 integration tests, as well as the specs.

from fakeiteasy.

adamralph avatar adamralph commented on August 28, 2024

Renamed from 'Not all tests are running on codebetter CI' to 'Number of tests is misreported on codebetter CI'

from fakeiteasy.

blairconrad avatar blairconrad commented on August 28, 2024

@philippdolder, @adamralph
check it out

from fakeiteasy.

adamralph avatar adamralph commented on August 28, 2024

woot! 👏 what did you do?

from fakeiteasy.

blairconrad avatar blairconrad commented on August 28, 2024

Added a build feature - XML reports. See on
http://teamcity.codebetter.com/admin/editBuildRunners.html?id=buildType:bt1255

toward the bottom, there.

I guess it picks up the Spec tests from the output, but can't for NUnit. If we'd used the TeamCity NUnit runner, it would've Just Worked(TM.

from fakeiteasy.

adamralph avatar adamralph commented on August 28, 2024

Great! Let's get it into the official build config. I don't want to use the TeamCity NUnit runner since then the CI server build diverges from a local rake.

Interestingly, with xunit.net tests, this isn't required. It Just Works. I think the xunit.net runner has some special magic inside it to detect that it's running in the context of TeamCity.

from fakeiteasy.

blairconrad avatar blairconrad commented on August 28, 2024

XUnit may. I suppose an alternative could be to hook up a custom listener to NUnit that would emit the correct... I forget what they're called "notes to TeamCity", but only when running under TeamCity.

I wonder if we'd used the /labels flag for NUnit if the test would've been detected.

I can experiment with either of those approaches if you like. But I think the thing I did today is pretty good. If you're okay with it, I'll move it to the official configuration (or anyone can) later today.

from fakeiteasy.

adamralph avatar adamralph commented on August 28, 2024

Done!

I think this fix is absolutely fine. No point spending more time on it.

At some point though, personally, I'd like to switch to xunit.net 😉.

from fakeiteasy.

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.