Coder Social home page Coder Social logo

Comments (9)

padraic avatar padraic commented on May 30, 2024

Any chance of a reproducible example?

I'd need to look into it, and I can't think of a reason why Humbug would be interfering, but that doesn't mean something isn't going on. The only items Humbug should be manipulating are the source code (never the test code), and it does use an edited copy of your phpunit.xml to run test classes in a fastest-first order.

Could you try running tests using the --tap option using phpunit - just to make sure it still reports those failures (by implanting the mutations) correctly? The TAP does need testing for more scenarios so it's one possible cause.

Also noting to self that I do need to dump junit, and there be naming shenanigans at work when iterating data providers into the result log.

from humbug.

carnage avatar carnage commented on May 30, 2024

The --tap option shows failures properly, I'll try and construct a test case at the weekend.

from humbug.

padraic avatar padraic commented on May 30, 2024

Thanks @carnage, would appreciate that :).

from humbug.

marcaube avatar marcaube commented on May 30, 2024

I got the same kind of result with tests using a data provider. Simply moving the data to an array inside the test case and looping on this data removed the false positives.

from humbug.

padraic avatar padraic commented on May 30, 2024

It is the data providers. The problem is that one of the older bits of pre-Humbug nameless library was the reliance on Junit which is fairly complex for our needs. There's a bug in there around the testsuite nesting. I'd fix it, but honestly I'd prefer to spend the time moving onwards to our own time logging solution which is JSON, simpler, and provides the option of finer grained test aggregation (at present, Humbug is limited to test CLASS aggregation due to PHPUnit limitations which means we run a lot of pointless tests - shall be optional since test insulation is not guaranteed, but a welcome perf boost for those who can swing it).

from humbug.

padraic avatar padraic commented on May 30, 2024

@carnage @marcaube Guys, give the new master a trial run - do a composer update first. Hopefully this resolves any data provider issues.

from humbug.

marcaube avatar marcaube commented on May 30, 2024

@padraic It works fine for me now. Thanks!

from humbug.

carnage avatar carnage commented on May 30, 2024

@padraic Fixed it for me as well.

from humbug.

padraic avatar padraic commented on May 30, 2024

Excellent! :P

from humbug.

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.