From 757d1bccc11f12307ceebe4f6f7fdb78cf2163f5 Mon Sep 17 00:00:00 2001 From: No-Jun Park Date: Thu, 1 Jun 2017 17:03:15 -0400 Subject: [PATCH] adding code coverage, fix failed test, excluse english test from Klar (#59) --- .../xcschemes/Focus (Enterprise).xcscheme | 13 ++++++++++++- .../xcschemes/Klar (Enterprise).xcscheme | 8 +++++++- README.md | 2 ++ XCUITest/SettingAppearanceTest.swift | 2 +- buddybuild_postbuild.sh | 3 +++ codecov.yml | 7 +++++++ 6 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 buddybuild_postbuild.sh create mode 100644 codecov.yml diff --git a/Blockzilla.xcodeproj/xcshareddata/xcschemes/Focus (Enterprise).xcscheme b/Blockzilla.xcodeproj/xcshareddata/xcschemes/Focus (Enterprise).xcscheme index 8c0b1a1ac0..2528cfc201 100644 --- a/Blockzilla.xcodeproj/xcshareddata/xcschemes/Focus (Enterprise).xcscheme +++ b/Blockzilla.xcodeproj/xcshareddata/xcschemes/Focus (Enterprise).xcscheme @@ -26,7 +26,8 @@ buildConfiguration = "FocusEnterprise" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + codeCoverageEnabled = "YES"> @@ -42,6 +43,16 @@ referenceType = "1"> + + + + + shouldUseLaunchSchemeArgsEnv = "YES" + codeCoverageEnabled = "YES"> @@ -37,6 +38,11 @@ BlueprintName = "XCUITest" ReferencedContainer = "container:Blockzilla.xcodeproj"> + + + + diff --git a/README.md b/README.md index 6b6634c3f4..3bf6ff65a2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![codecov](https://codecov.io/gh/mozilla-mobile/focus/branch/master/graph/badge.svg)](https://codecov.io/gh/mozilla-mobile/focus) + # Firefox Focus for iOS _Browse like no one’s watching. The new Firefox Focus automatically blocks a wide range of online trackers — from the moment you launch it to the second you leave it. Easily erase your history, passwords and cookies, so you won’t get followed by things like unwanted ads._ diff --git a/XCUITest/SettingAppearanceTest.swift b/XCUITest/SettingAppearanceTest.swift index 28a2b69245..8bc09482f2 100644 --- a/XCUITest/SettingAppearanceTest.swift +++ b/XCUITest/SettingAppearanceTest.swift @@ -29,7 +29,7 @@ class SettingAppearanceTest: BaseTestCase { // Check Help page, wait until the webpage is shown tablesQuery.staticTexts["Help"].tap() - waitforExistence(element: app.staticTexts["What is Firefox Focus for iOS?"]) + waitforExistence(element: app.staticTexts["What is Firefox Focus?"]) let firefoxFocusAboutcontentviewNavigationBar = app.navigationBars["Firefox_Focus.AboutContentView"] firefoxFocusAboutcontentviewNavigationBar.buttons["About"].tap() diff --git a/buddybuild_postbuild.sh b/buddybuild_postbuild.sh new file mode 100644 index 0000000000..104131af73 --- /dev/null +++ b/buddybuild_postbuild.sh @@ -0,0 +1,3 @@ + +#!/usr/bin/env bash +bash <(curl -s https://codecov.io/bash) diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..1f319ca892 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,7 @@ +codecov: + max_report_age: off + +ignore: + - "./Shared" + +comment: false