Resources
Download and install Xamarin Studio
Download and install Xcode
- After installation, be sure to open and accept the license agreements
Open Xamarin Studio and configure the following;
Xamarin Studio => Add-ins
- Testing => NUnit support
- Gallery => SpecFlow support
Xamarin Studio => Preferences => Projects => SDK Locations
Ensure Android SDK locations;
- Android SDK: path/to/android/sdk
- Java SDK: path/to/java/sdk
- Android NDK: path/to/android/ndk
Ensure Apple SDK locations;
- Apple SDK: path/to/xcode.app
Open a terminal and execute
$ open ~/.bash_profile
Add to bash profile
export ANDROID_HOME=/path/to/android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export JAVA_HOME=$(/usr/libexec/java_home)
Save changes, close bash profile, close and reopen terminal.
Still in Terminal, execute the following commands:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After installation:
$ brew doctor
Your system is ready to brew
$ brew install node
Then
$ node --version
v6.3.1
Still in terminal, execute
$ brew install git
Then
$ git --version
git version 2.9.2
Download and install Visual Studio (2015 Enterprise)
Open Visual Studio and configure the following;
Tools => Extensions
- NUnit 3 Test Adapter
- Xamarin Forms Player
- Xamarin for Visual Studio
- Tools => Android => Android SDK Manager
- for Adroid versions LATEST to 4.1.2 : install - SDK Platform - Google APIs ARM EABI v7a System Imaga - - - Google APIs Intel x 86 Atom System Image - - - Google APIs
- You may need to Create a Virtual Device under Tools => Android => Android Emulator Manager
Install Android SDK
Open environment variables and edit User Variables;
Create a new ENV var
ANDROID_HOME=\path\to\android\sdk
Append new entries to PATH
PATH=%ANDROID_HOME%\tools
PATH=%ANDROID_HOME%\platform-tools
Requirements
- PowerShell 3
- PowerShell must be enabled for User account
set-executionpolicy unrestricted -s cu
Install:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop install nodejs-lts
scoop install git
- Build
- Xamarin Studio: View => Test
- Visual Studio: Tests => Windows => Test Explorer
Install dependencies
$ npm install
Build project
$ npm run build
Run tests
$ TEST=<test> npm run test
TEST can be comma delimited list of tests: <C001,C002,C003>