Closed cojoj closed 9 years ago
Ignore Bitrise, I was testing it and it just doesn't work.
Anyway - to your PR, looks good. To your question - if we can always just use createRequest
, then we shouldn't be testing a case that can never happen. So I think it's fine.
Do you want to add more tests to this PR (is this WIP?)
Nah, it's ready to merge as there's nothing more to test ATM!
One more thing... Let me put some emoji
😏
Okey, now it's ready 😆👍
Duration: 45 seconds Result: Perfect build! All 28 tests passed. :+1: Test Coverage: 44%.
Thanks @cojoj!
Oi! 🇬🇧
I've created test suite for
XcodeServerEndpoints
with purpose of testingcreateRequest()
but it looks like it's mostly tested (or at least covered in other tests), so I've only created test case for malformed URLs passed to this method.We're missing code coverage for those lines:
but it's complicated as I can't invent any failable case for
NSJSONSerialization.dataWithJSONObject()
as earlier we make sure we passNSDictionary
and any valid dictionary will be a valid JSON in that case.Still no update for
guard
statement bug and code put directly afterguard
is never marked in test coverage... 😭