cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [1/2] Changed CordovaLibTests to run in a xcworkspace, and runnable from the command line
Date Fri, 10 Oct 2014 00:04:54 GMT
Repository: cordova-ios
Updated Branches:
  refs/heads/master cba612ff0 -> ff9a4ad0e


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/ff9a4ad0/tests/CordovaLibTests/CordovaTests.xcodeproj/xcshareddata/xcschemes/CordovaLibTests.xcscheme
----------------------------------------------------------------------
diff --git a/tests/CordovaLibTests/CordovaTests.xcodeproj/xcshareddata/xcschemes/CordovaLibTests.xcscheme
b/tests/CordovaLibTests/CordovaTests.xcodeproj/xcshareddata/xcschemes/CordovaLibTests.xcscheme
deleted file mode 100644
index 3557154..0000000
--- a/tests/CordovaLibTests/CordovaTests.xcodeproj/xcshareddata/xcschemes/CordovaLibTests.xcscheme
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-         <TestableReference
-            skipped = "NO">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "686357A8141002F100DF4CF2"
-               BuildableName = "CordovaLibTests.xctest"
-               BlueprintName = "CordovaLibTests"
-               ReferencedContainer = "container:CordovaTests.xcodeproj">
-            </BuildableReference>
-         </TestableReference>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug"
-      ignoresPersistentStateOnLaunch = "NO"
-      debugDocumentVersioning = "YES"
-      allowLocationSimulation = "YES">
-      <AdditionalOptions>
-         <AdditionalOption
-            key = "DYLD_INSERT_LIBRARIES"
-            value = "/usr/lib/libgmalloc.dylib"
-            isEnabled = "YES">
-         </AdditionalOption>
-         <AdditionalOption
-            key = "NSZombieEnabled"
-            value = "YES"
-            isEnabled = "YES">
-         </AdditionalOption>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release"
-      debugDocumentVersioning = "YES">
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/ff9a4ad0/tests/README.md
----------------------------------------------------------------------
diff --git a/tests/README.md b/tests/README.md
new file mode 100644
index 0000000..18018d2
--- /dev/null
+++ b/tests/README.md
@@ -0,0 +1,19 @@
+# Tests for cordova-ios
+
+You need to install `node.js` to run npm test
+
+
+# Testing from Xcode
+
+1. Launch the `cordova-ios.xcworkspace` file.
+2. Choose "CordovaLibTests" from the scheme drop-down menu
+3. Click and hold on the `Play` button, and choose the `Wrench` icon to run the tests
+
+
+# Testing from the command line
+
+    npm test
+
+OR
+
+    killall 'iOS Simulator' && xcodebuild test -scheme CordovaLibTests -destination
'platform=iOS Simulator,name=iPhone 5'

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/ff9a4ad0/tests/package.json
----------------------------------------------------------------------
diff --git a/tests/package.json b/tests/package.json
new file mode 100644
index 0000000..82d2540
--- /dev/null
+++ b/tests/package.json
@@ -0,0 +1,13 @@
+{
+    "name": "cordova-ios-tests",
+    "version": "1.0.0",
+    "description": "Tests for cordova-ios",
+    "author": "Apache Software Foundation",
+    "license": "Apache Version 2.0",
+    "dependencies": {
+    },
+    "scripts": {
+        "test": "npm run cordovalib",
+        "cordovalib" : "killall 'iOS Simulator' && xcodebuild test -scheme CordovaLibTests
-destination 'platform=iOS Simulator,name=iPhone 5'"
+    }    
+}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message