GithubHelp home page GithubHelp logo

rspec -c -f doc about kiwi HOT 7 CLOSED

kiwi-bdd avatar kiwi-bdd commented on June 13, 2024
rspec -c -f doc

from kiwi.

Comments (7)

lukeredpath avatar lukeredpath commented on June 13, 2024

It will be once I've finished the groundwork on the improved logging and Kiwi runner.

from kiwi.

dimsumthinking avatar dimsumthinking commented on June 13, 2024

Hi Luke,

Not nagging - just asking - how is work coming on improved logging and Kiwi runner?

Best, Daniel

from kiwi.

lukeredpath avatar lukeredpath commented on June 13, 2024

Hi Daniel

Not got much further on a standalone runner but the logging is currently much improved now that each spec runs as a separate OCUnit test.

from kiwi.

dimsumthinking avatar dimsumthinking commented on June 13, 2024

Thanks Luke,

I spent the last few days with Rubyists - I'd be happy to see colored output for tests that pass and fail but I'm not sure if that's possible in the Xcode console or if that's something Apple needs to do at the OCUnit level.

from kiwi.

allending avatar allending commented on June 13, 2024

So I've been thinking Luke and Daniel ...

What are your thoughts on this temporary stopgap hack for colored output:

Just a simple runner script:

  1. Wraps the built in in RunUnitTests, runs it, captures output.
  2. For now, assume that the format of output from RunUnitTests is stable and will probably never be changed by Apple.
  3. Split output into lines.
  4. Lines with [FAILED], tag red.
  5. Lines with [PASSED], tag green.
  6. Lines with [PENDING], tag yellow.
  7. Elide lines that we don't care about.
  8. Reformat and spit out results.

I have not looked at this at a custom logger/runner as you Luke, so you probably have a better idea of whether this makes any sense or maybe this is what you already had in mind.

from kiwi.

pooriaazimi avatar pooriaazimi commented on June 13, 2024

I'm just starting with Kiwi and must say it's amazing - waaaay better than I thought would be possible in ObjC with all its quirks and (somewhat) ugly syntax. But Kiwi is almost perfect and I'm really enjoying it!

But it'd be really cool if this issue could be resolved... I would love to see some colors in my console log...

I searched #issues a little, but didn't find anything of interest (regarding this particular issue). Can someone who's more intimately familiar with Kiwi please tell me if there's been any improvements?

I took a quick look at the source code, but it's rather big and I couldn't tell if adding color (probably using XcodeColors) and CocoaLumberJack (while not forcing it and allowing people to use the current version if they want) is easy or not.

The nice thing is that if we use CocoaLumberjack, we can write to console and a file (or a socket, or anything else we please). Now, we can write a simple server (for lack of a better word) in ruby or python or Node.js or whatever and let it run in the background. Now, when Kiwi generates new results, our server can be notified and and re-route the generated results through rSpec's formatter (or mocha's, or any of the million other test frameworks); so we don't have to re-invent the wheel and can use what rSpec people use to format our test results. These results can be shown in terminal, or in a browser. As a bonus, the server can even track the project's progress (how many tests have failed, etc.)

I'm curious to know what others think about this idea.

Thanks.

from kiwi.

allending avatar allending commented on June 13, 2024

Closing. Will look at a proper test runner as part of #176.

from kiwi.

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.