Comments (8)
Think this is a pretty good idea. What is there really does not depend on UIKit at all as it it, and so could be considered the foundation. What specific UIKit functionality are you thinking about? Views have been rather finicky w/ regards to testing in my experience.
from kiwi.
Would you then build cucumber like functionality for each platform?
from kiwi.
No plans for Cucumber-style testing. I'd recommend looking at Frank which actually uses Cucumber or KIF if you want a general integration testing solution.
However, I'm open to the idea of building some convenient matcher libraries for UIKit-related specs.
from kiwi.
Thanks Luke.
It just seems to me if you are taking this step then you are essentially entering into the functional testing category. Maybe I'm just not seeing it. The only parts of the GUI I generally test are those exposed as Outlets, Actions, etc. Although with O's and A's moving to the .m file, your approach may be more attractive.
Anyway, I'm just an observer and not actually doing the hard work that you guys are doing. I appreciate your efforts.
from kiwi.
I have been collecting and working on some GUI related test helper code over the last year, here’s an Nu example or a MacRuby example. (My spec framework is meant to be used with languages other than Objective-C.) It may or may not be interesting to make this a shared thing.
from kiwi.
I certainly agree that view testing is something better covered by functional tests that drive the UI.
What I was thinking of was controllers but I'm not sure, I've not done enough unit testing of controllers to know what would be useful and what wouldn't. I need to give this some thought.
from kiwi.
What about UIAutomation? I would also recommend separating out the Core, Mocks & Expectations into separate libraries. Like RSpec: https://www.relishapp.com/rspec/
from kiwi.
Lets look at this 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.