Giter Site home page Giter Site logo

Comments (5)

driesvints avatar driesvints commented on May 24, 2024

I realize this isn't ideal but this isn't a realistic scenario tbh. An empty test class should be removed.

We would appreciate a PR however to make this UX better.

from dusk.

selfsimilar avatar selfsimilar commented on May 24, 2024

This is absolutely a realistic scenario - this is a thing that has happened. I have junior programmers (work studies) who commented out WIP tests. There's no documentation that this is a hazard. Especially when local runs of Dusk appear to be passing and it looks fine to send to a stage or dev environment via CI. "Why is my build failing? All test are passing but the build stops at Dusk!"

I will happily work towards a PR on this, but please don't tell me "I'm holding it wrong" or "this is an unrealistic scenario". No warnings on a non-zero stderr is just not ok.

I've already done a little digging, and this may be more of a PHPUnit issue rather than a Dusk issue; that I might agree to. But if you're saying this isn't a problem, it will be harder for me to convince any other project to fix this issue.

from dusk.

selfsimilar avatar selfsimilar commented on May 24, 2024

This is a bug in Collision

Issue and a PR for the fix

nunomaduro/collision#293

nunomaduro/collision#294

from dusk.

Pacific01 avatar Pacific01 commented on May 24, 2024

This is absolutely a realistic scenario - this is a thing that has happened. I have junior programmers (work studies) who commented out WIP tests.

Indeed its a realistic scenario.

I was working on a GitHub Action pipeline, php artisan dusk:install adds tests/Browser/ExampleTest.php by default, there is a testBasicExample that looks for "Laravel" text on the home page, making the pipeline automatically fail.

My solution was to add/commit test/Browser/ExampleTest.php with no tests on It... And 4 hours later of debugging sail dusk and asking myself why echo $? returns 1 if every test is on green? A real pain in the ***

from dusk.

selfsimilar avatar selfsimilar commented on May 24, 2024

@Pacific01 - I dug in on this and discovered this is a downstream error from the Collision package that Dusk relies on. I've submitted a patch, but it is still unmerged. You could take that patch, or perhaps comment on the PR to see if that speeds the acceptance of the patch.

from dusk.

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.