Git Product home page Git Product logo

Comments (9)

czechboy0 avatar czechboy0 commented on July 17, 2024

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.

cojoj avatar cojoj commented on July 17, 2024

Great, so glad that we both have same similar vision 😉

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on July 17, 2024

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.

cojoj avatar cojoj commented on July 17, 2024

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.

cojoj avatar cojoj commented on July 17, 2024

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.

czechboy0 avatar czechboy0 commented on July 17, 2024

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.

czechboy0 avatar czechboy0 commented on July 17, 2024

@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.

cojoj avatar cojoj commented on July 17, 2024

@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.

czechboy0 avatar czechboy0 commented on July 17, 2024

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)

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.