From 3dc81ba72ef024283e0244151d46dc122f8d2c1c Mon Sep 17 00:00:00 2001 From: blagoev Date: Wed, 15 Mar 2017 16:25:05 +0200 Subject: [PATCH 1/3] update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index 4dcfc7a4..7101db0c 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,46 @@ To build for Android: - `./gradlew publishAndroid` - The compiled version of the Android module is here: `/android` +To build for nodejs: + +``` +npm install --build-from-souce +``` + + - On Windows you will need to setup the environment for node-gyp + + - Option 1: Install windows-build-tools node package + + - Open an elevated command prompt (As Administrator) + + ``` + npm install -g --production windows-build-tools + ``` + + * Option 2: Manually install and configure + + - Check [node-gyp](https://github.com/nodejs/node-gyp) manual for custom installation procedure for Windows + + +## Running the tests + +You can use scripts/tests.sh to run the various tests. +You will need yarn installed on the machine. + +test.sh options + + * eslint - lints the sources + * realmjs - runs all tests on quick simulated environment + * react-tests - runs all React Native tests on iOS Simulator + * react-tests-android runs all React Native Android tests on Android emulator + * node - runs all tests for node + * node-nosync - runs all tests for node withouit sync support + * test-runners - checks supported tests runners are working correctly + + + + + ## Code of Conduct This project adheres to the Contributor Covenant [code of conduct](https://realm.io/conduct/). From 2f9c3ed351dfb68904856ac89164a90cc9f3a45e Mon Sep 17 00:00:00 2001 From: blagoev Date: Wed, 15 Mar 2017 17:17:07 +0200 Subject: [PATCH 2/3] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7101db0c..c1e7349f 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ test.sh options * react-tests - runs all React Native tests on iOS Simulator * react-tests-android runs all React Native Android tests on Android emulator * node - runs all tests for node - * node-nosync - runs all tests for node withouit sync support + * node-nosync - runs all tests for node without sync support * test-runners - checks supported tests runners are working correctly From 06a0ab8eeb5f67c543388409a9fec359513bb2d6 Mon Sep 17 00:00:00 2001 From: blagoev Date: Thu, 16 Mar 2017 14:40:06 +0200 Subject: [PATCH 3/3] added debug tests info --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c1e7349f..d1818e87 100644 --- a/README.md +++ b/README.md @@ -97,8 +97,11 @@ test.sh options * test-runners - checks supported tests runners are working correctly +You can attach a debugger to react-native tests by passing "Debug" to the tests.sh script. A Chrome browser will open and connect to the react native application. Use the built-in Chrome Debugger to debug the code. - +``` +./tests.sh react-tests Debug +``` ## Code of Conduct