<commit_before>.PHONY: tags framework bundle integration-tests ui-integration-tests clean test package release

test:
	SZEventTrackingDisabled=1 WRITE_JUNIT_XML=YES RUN_CLI=1 GHUNIT_CLI=1 xcodebuild -scheme UnitTests -configuration Debug -sdk iphonesimulator

default: build buildsample test package

package: framework
	./Scripts/package.sh

release: package
     
framework:
	xcodebuild -scheme "Socialize Framework" -configuration Release

clean:
	xcodebuild -scheme "Socialize" -configuration Release -sdk iphoneos clean
	xcodebuild -scheme "UnitTests" -configuration Debug -sdk iphonesimulator clean
	xcodebuild -scheme "IntegrationTests" -configuration Debug -sdk iphonesimulator clean
	xcodebuild -scheme "UIIntegrationTests" -configuration Debug -sdk iphonesimulator clean
	rm -rfd build
	rm -f $(SUBST_BUILD_FILES)

coverage:
	# TODO put back UIIntegrationTests once it's outputting stuff again (need to add gcov flush to its app delegate)
	./Scripts/generate-combined-coverage-report.sh build/test-coverage/IntegrationTests-Coverage.info build/test-coverage/unitTests-Coverage.info

integration-tests:
	WRITE_JUNIT_XML=YES RUN_CLI=1 xcodebuild -scheme IntegrationTests -configuration Debug -sdk iphonesimulator build

ui-integration-tests:
	xcodebuild -scheme "TestApp" -configuration Debug -sdk iphonesimulator -destination OS=6.1,name="iPhone" test
	#killall "iPhone Simulator" >/dev/null 2>&1
	./Scripts/generate-ui-coverage-report.sh
<commit_msg>remove clean step for ui integration<commit_after>.PHONY: tags framework bundle integration-tests ui-integration-tests clean test package release

test:
	SZEventTrackingDisabled=1 WRITE_JUNIT_XML=YES RUN_CLI=1 GHUNIT_CLI=1 xcodebuild -scheme UnitTests -configuration Debug -sdk iphonesimulator

default: build buildsample test package

package: framework
	./Scripts/package.sh

release: package
     
framework:
	xcodebuild -scheme "Socialize Framework" -configuration Release

clean:
	xcodebuild -scheme "Socialize" -configuration Release -sdk iphoneos clean
	xcodebuild -scheme "UnitTests" -configuration Debug -sdk iphonesimulator clean
	xcodebuild -scheme "IntegrationTests" -configuration Debug -sdk iphonesimulator clean
	#xcodebuild -scheme "UIIntegrationTests" -configuration Debug -sdk iphonesimulator clean
	rm -rfd build
	rm -f $(SUBST_BUILD_FILES)

coverage:
	# TODO put back UIIntegrationTests once it's outputting stuff again (need to add gcov flush to its app delegate)
	./Scripts/generate-combined-coverage-report.sh build/test-coverage/IntegrationTests-Coverage.info build/test-coverage/unitTests-Coverage.info

integration-tests:
	WRITE_JUNIT_XML=YES RUN_CLI=1 xcodebuild -scheme IntegrationTests -configuration Debug -sdk iphonesimulator build

ui-integration-tests:
	xcodebuild -scheme "TestApp" -configuration Debug -sdk iphonesimulator -destination OS=6.1,name="iPhone" test
	#killall "iPhone Simulator" >/dev/null 2>&1
	./Scripts/generate-ui-coverage-report.sh

{'fraction_non_alphanumeric': 0.07710597826086957, 'fraction_numerical': 0.005434782608695652, 'mean_word_length': 5.544444444444444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4947744', 'n_tokens_mistral': 923, 'n_tokens_neox': 882, 'n_words': 261}