Comments (9)
I actually prefer a higher volume of smaller pull requests. So feel free to add a couple of tests, pr it, another day add more, create a new pr for that etc. That makes it easier to track changes and find a good way we want to do this over time. Let's start small.
Yeah let's use swift-2 as our "master" right now and base everything on it - just as you said, to take advantage of all the cool Xcode 7 features.
So prs should be from temporary branches into swift-2.
Does that make sense?
from xcodeserversdk.
Great, so glad that we both have same similar vision
from xcodeserversdk.
Here's what I'm thinking (I just created a simple case): https://github.com/czechboy0/XcodeServerSDK/compare/hd/tests_1?expand=1
But basically, I think (at least for the parsing tests, which will be a large portion), we should have JSON files with sample dump of real data from Xcode Server. And in the test, we load the appropriate one, let it create the native Swift object and assert that the fields are what we expect them to be.
No need to always test all fields, we should only assert the field we're testing in each test case (so id
, _rev
etc we only test in one common test, but not in all bots tests, for instance).
Take a look at the diff above (sorry, still in Xcode 6/Swift 1.2 format, but you get the gist) and let me know if that looks fine to you.
from xcodeserversdk.
That's right, we need mock objects - in our case prepared JSON files in test bundle from which we'll create mock object inside tests.
from xcodeserversdk.
I think I'll sit on think during the weekend but I have no XcodeServer on my personal Mac and probably won't have time tomorrow at work to create some mock JSONs.
Is it possible for you, @czechboy0, to provide some JSON files which will be used is mock objects? It'll be nice to have some JSONs of different bots with different configurations so we can crete Array of them for some tests and also break them to separate bots.
Later we can do the same with integrations...
from xcodeserversdk.
Done in #18 for Bots. Most cases are from an Xcode 6 server, but some are from Xcode 7. My worry is it will be too much of a pain to support both in the same codebase. We might need to tidy up support for Xcode 6, make the last pod version and then go into the beauties of the future with just Xcode 7.
I mean, that's the first officially supported version. But people will still be able to use the old pod version if they want Xcode 6 support.
from xcodeserversdk.
@cojoj Btw install Xcode Server on your personal Mac as well, it'll help you develop and test much faster. Just get OS X Server from the developer portal and start it. Takes minutes.
from xcodeserversdk.
@czechboy0 I agree with you about Xcode 6 support. BTW, my opinion on this topic is like: Apple officially allows this from Xcode 7, so let's focus on Xcode 7.
I guess that everyone interested in using this framework will realize that we want to focus on newest tools and they'll probably use newest tools as well.
from xcodeserversdk.
I made that change to the readme here: 0f31d7b Let's close this for now as it's too high-level for our work going forward.
from xcodeserversdk.
Related Issues (20)
- Provide RAC extensions (as a subspec) HOT 2
- Use Nimble for test matchers HOT 4
- Add support for live updates from XCS HOT 1
- Wait for integration results HOT 2
- Crash - no available platforms on Xcode Server HOT 6
- Add platforms for tvOS and tvOS simulator HOT 1
- Rename dictionarify to jsonify to be consistent with BuildaUtils
- Review & adapt to the new XCS API Docs HOT 2
- Release a spec with tvOS support HOT 1
- XcodeServerProxy (proxy, load balancer) HOT 4
- Has API changed with latest OS X Server update? HOT 8
- Call to server.getIntegrations fails with 400 Error HOT 4
- Incompatible with Xcode 7.3 beta HOT 4
- Build a API tester to run on every new release
- Cancel API not working HOT 3
- Not compiling in Swift 2.3 HOT 2
- bot creation HOT 1
- Include repository fingerprint to make adjusting bots easier
- Re-record test cassettes with Xcode 7 Beta 6 changes HOT 1
- Don't send `rev` when deleting a Bot
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 xcodeserversdk.