Giter Club home page Giter Club logo

Comments (10)

ajacksified avatar ajacksified commented on June 15, 2024

Something isn't necessarily wrong - it's possible that someone made a placeholder file to fill out later.

from busted.

Tieske avatar Tieske commented on June 15, 2024

then still a warning is appropriate, becasue imho the placeholder should have had a 'pending' test. No warning might give the impression complete and done, which is not correct in that case.

from busted.

ajacksified avatar ajacksified commented on June 15, 2024

It is both complete and done, though; the only things that would be wrong would be you didn't write any tests (which shows 0 completions) or the test framework is bad (which we should have caught in busted core specs.)

We could update the terminal verbose output to show the files that have been loaded and run, and how many tests failed/succeeded/pended in each of them.

from busted.

Tieske avatar Tieske commented on June 15, 2024

I think showing files and the test from each would suffice

from busted.

DorianGray avatar DorianGray commented on June 15, 2024

I think we should show the number of pending tests, like we do now, if a test file is run that contains only pending tests. If no tests are found in a file, we should throw a warning.

We can optionally show extra information when verbose output is selected.

from busted.

DorianGray avatar DorianGray commented on June 15, 2024

We should not warn on empty describe blocks, however.

from busted.

Tieske avatar Tieske commented on June 15, 2024

@DorianGray +1

Using the verbose option sounds good, I ran into my issue when setting up a new project, and the output just didn't tell me everything I wanted to know to rest assured it simply worked.
So using verbose option should not only display detailed errors, but also version info, filenames and the options used for the test run (including the ones not provided and defaulted). Then once your new setup works, simply remove the verbose option.

from busted.

ajacksified avatar ajacksified commented on June 15, 2024

I had a thought this morning about using mediator_lua to do messages to output over a pub/sub pattern instead of function calls so that we have a ton of flexibility. We could fire events when we load a file, run a test, etc and let the output lib decide what it cares about and how to format it.

from busted.

karlp avatar karlp commented on June 15, 2024

Further, it would be nice if the stdout of the code under test could be separate from how the output formatters work. Both json and my own junit xml formatters will break badly if any code that is being tested includes a print() anywhere at all.

from busted.

ajacksified avatar ajacksified commented on June 15, 2024

closed, #144

from busted.

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.