New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup testing environment #11

Closed
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@mkchoi212
Contributor

mkchoi212 commented May 14, 2018

Tests for VLCTime.m have been added.

Changes to project.pbxproj have been made to make the tests compile but may need some cleanup in the future.

@mkchoi212 mkchoi212 changed the title from Add tests for VLCTime.m to Add tests for VLCTime May 14, 2018

@carolanitz

Smaller pullrequests will be a lot better. I simply couldn't check if you covered all the methods and all cases of it . Make one PR with all tests for one function :) Otherwise this will become a huuuge Pullrequest and I will miss way too much

GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Headers/PCH/MobilePrefix.pch;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
HEADER_SEARCH_PATHS = "$(SRCROOT)/libvlc/vlc/include";
INSTALL_PATH = /usr/local/lib;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;

This comment has been minimized.

@carolanitz

carolanitz May 15, 2018

Member

why are you changing the deployment target ?

CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;

This comment has been minimized.

@carolanitz

carolanitz May 15, 2018

Member

Did this get added because you pressed the update xcode settings button ?

This comment has been minimized.

@mkchoi212

mkchoi212 May 15, 2018

Contributor

Yes I think so. Should this be removed?

This comment has been minimized.

@carolanitz

carolanitz May 16, 2018

Member

no that's fine from my side. I was just wondering

}];
}
@end

This comment has been minimized.

@carolanitz
*****************************************************************************
* Copyright (C) 2007 Pierre d'Herbemont
* Copyright (C) 2013, 2017 Felix Paul Kühne
* Copyright (C) 2007, 2013 VLC authors and VideoLAN

This comment has been minimized.

@carolanitz

carolanitz May 15, 2018

Member

Pierre and Felix didin't write this class ;)

func testInitializers() {
let testTime: Int32 = 100000
let expected = TimeResult(value: NSNumber(value: testTime), string: "01:40", verboseString: "1 minutes 40 seconds", minuteString: "1", intValue: testTime)

This comment has been minimized.

@carolanitz

carolanitz May 15, 2018

Member

we should have minute here

let expected = TimeResult(value: nil, string: "--:--", verboseString: "", minuteString: "", intValue: 0)
expected.assertEqual(nullTime)
}

This comment has been minimized.

@carolanitz

carolanitz May 15, 2018

Member

you missed testTimeWithNumber, testtimeWithInt and right ?

expected.assertEqual(nullTime)
}
func testInitializers() {

This comment has been minimized.

@carolanitz

carolanitz May 15, 2018

Member

Shouldn't be testInitWithNumber ?

This comment has been minimized.

@mkchoi212

mkchoi212 May 15, 2018

Contributor

I combined tests for initWithNumber and initwithInt into tesIntializers to make things less verbose. Should they be separated?

This comment has been minimized.

@carolanitz

carolanitz May 16, 2018

Member

yes. One test to test one thing or one method

expected.assertEqual(timeFromInt)
expected.assertEqual(timeFromNumber)
}

This comment has been minimized.

@carolanitz

carolanitz May 15, 2018

Member

testInitWithInt is missing

@mkchoi212 mkchoi212 force-pushed the mkchoi212:VLCMedia-tests branch from 83a9f17 to ed0518b May 15, 2018

@mkchoi212

This comment has been minimized.

Contributor

mkchoi212 commented May 15, 2018

I split up the big commit into smaller chunks so it's easier to see!
Also, more tests for time -> string has been added.

@mkchoi212 mkchoi212 force-pushed the mkchoi212:VLCMedia-tests branch 4 times, most recently from 68d92b3 to d3415d3 May 15, 2018

@mkchoi212 mkchoi212 force-pushed the mkchoi212:VLCMedia-tests branch 2 times, most recently from affd6fd to 3507780 May 17, 2018

@mkchoi212 mkchoi212 changed the title from Add tests for VLCTime to Setup testing environment May 18, 2018

@carolanitz

This comment has been minimized.

Member

carolanitz commented May 23, 2018

this has been merged with e8ba7c2 and c2044e8

@carolanitz carolanitz closed this May 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment