Comments (7)
It will be once I've finished the groundwork on the improved logging and Kiwi runner.
from kiwi.
Hi Luke,
Not nagging - just asking - how is work coming on improved logging and Kiwi runner?
Best, Daniel
from kiwi.
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.
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.
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:
- Wraps the built in in RunUnitTests, runs it, captures output.
- For now, assume that the format of output from RunUnitTests is stable and will probably never be changed by Apple.
- Split output into lines.
- Lines with [FAILED], tag red.
- Lines with [PASSED], tag green.
- Lines with [PENDING], tag yellow.
- Elide lines that we don't care about.
- 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.
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.
Closing. Will look at a proper test runner as part of #176.
from kiwi.
Related Issues (20)
- Use predicate in stubbed properties when filtering mock objects in array HOT 1
- Macros autocomplete not working HOT 1
- when the second run testCase, not real run and success directly
- Swift 3 cocoapods run failed HOT 3
- Tests are executed in a wrong order under certain conditions (Xcode 8.3, single suite)
- Please help me :D Invalid pointer dequeued from free list
- Using a sharedExample in another HOT 2
- kiwi report error that' SenTestingKit/SenTestingKit.h file not found' HOT 2
- build synthetic seismogram in a specific station HOT 1
- Stop tests execution if one test is failed HOT 1
- Xcode 9: `any` Macro Conflicts with Generated Swift Header Macro `SWIFT_MODULE_NAMESPACE_PUSH` HOT 6
- Preparing next release HOT 8
- theValue(BOOL) not working with should receive
- XCTest.framework/XCTest' does not contain bitcode HOT 2
- expectFutureValue not working HOT 2
- How to test cadisplaylink
- Oops… the system encountered a problem (#500) - Retrying in X:XXs… HOT 1
- SharedExample with multiple 'it' blocks
- SIGABRT: kiwi crashes at KWProbePoller
- Preparing a new version (3.1.0) - Upgrading to Xcode 11 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwi.