Commit Graph

224 Commits

Author SHA1 Message Date
blagoev 988a86ff19 ignore kill process errors 2017-09-21 16:12:43 +03:00
blagoev 3f7e693a26 Download ROS 2.0 from npm for testing
disabled permissions and account tests
2017-09-21 02:22:49 +03:00
Thomas Goyne 1490285483 Skip running tests against ROS until they are updated for 2.0 2017-09-21 02:09:05 +03:00
Kenneth Geisshirt 1184fc2c0b Merge branch 'tg/update-object-store' of github.com:realm/realm-js into 2.0.x 2017-09-18 09:46:49 +02:00
Kenneth Geisshirt eeb78d8e1b Merge branch 'master' of github.com:realm/realm-js into 2.0.x 2017-09-18 09:46:36 +02:00
blagoev b85e27588f Disable verbose ROS output by default 2017-09-11 15:50:44 +03:00
Thomas Goyne 942643911d Ensure node 6.5.0 is installed for react-native tests 2017-09-08 11:40:56 -07:00
Kenneth Geisshirt 356033a8c4 Merge branch 'tg/update-object-store' of github.com:realm/realm-js into 2.0.x 2017-09-08 14:56:01 +02:00
Kenneth Geisshirt fa0016ba6b Merge branch 'master' of github.com:realm/realm-js into 2.0.x 2017-09-08 14:54:56 +02:00
Thomas Goyne acf7b4d6cc Update to core 3.1/sync rc18 2017-09-07 16:50:51 -07:00
Thomas Goyne 2185442f41 Link against static core/sync for node
The CMake packaging added shared libraries to the node release package, but the
build system isn't set up to work with them so just go back to using the static
libraries.
2017-09-01 17:27:26 -07:00
Thomas Goyne dd2d98a9e0 Fix downloading the prebuilt core for ios 2017-08-31 14:38:19 -07:00
Kristian Dupont 7284caf1ac Move publish testing to "test.sh all" (#1265)
* Move publish testing to "test.sh all"

* Minor fixes
2017-08-30 13:09:40 +02:00
blagoev 736cbd3ef3 Update object store 2017-08-29 14:51:25 -07:00
Ashwin Phatak 9ab5468d1f Revert "Check if the supported version (10e) of Android NDK is installed"
This reverts commit a3795fdfb0.
2017-08-22 15:49:32 +05:30
Ashwin Phatak a3795fdfb0 Check if the supported version (10e) of Android NDK is installed 2017-08-22 12:48:20 +05:30
Yavor Georgiev 5db836dc8b use newest ROS 2017-08-17 13:02:21 +02:00
Yavor Georgiev c78f82ac0c Update download script for the new core build system 2017-08-17 13:01:41 +02:00
Yavor Georgiev b17dcddd17 use sync 2.0-rc11 2017-08-17 12:56:01 +02:00
Kristian Dupont c24cc16ebf Fix a few publish issues (#1215)
* Stop trying to kill the server twice after testing

* Fix test targets to run before publishing

* ...

* Remove electron runner from publish for now

* Update changelog
2017-08-16 11:11:28 +02:00
Kristian Dupont f55fa10b6b Add environment-check script (#1199)
* Add environment-check script

* Check version without using semver module
2017-08-14 10:30:03 +02:00
Kræn Hansen e4e1431c55 Running js tests in Electron renderer process (#1196)
* First take on running the tests inside an Electron render process

* Making progress

* Making it possible to override the location of the admin token

* Ignoreing the realm-object-server files

* Fixing a console.log to return a string instead of a boolean

But it should probably be removed entirely

* Making the downloaded ROS log less

* Adjusting comments in the test.sh

* Checking number of windows to determine an Electron crash

* Added a test that triggers garbage collection of ArrayBuffers

* Enabled the ability to run the tests in Electrons main process

* Run tests first in main process and the render

* Added a README.md that documents how Electron tests can be run

* Added a comment on why the garbage-collection test was added.

* Waiting with reading the admin token, until it is actually used

* Disabling the GarbageCollectionTests for now
2017-08-11 10:30:57 +02:00
Yavor Georgiev ab29ac4490 Fix linter issues (#1132) 2017-07-10 16:53:00 +02:00
Yavor Georgiev 2f83d8792b
fix caching when downloading the ROS-for-testing bundle 2017-06-26 11:42:55 +02:00
Yavor Georgiev 208dc858b5 update the windows pre-gyp script (#1072) 2017-06-16 11:01:22 +02:00
blagoev 468e69d76e Improve VS Code debug
Allow debugging of session-tests and improve VS Code debug tasks.
New VS Code task to download and start server for debugging
New VS Code tasks to build only changed files and full rebuild
2017-05-17 16:05:15 +03:00
blagoev 8069c7e25a fix npm scripts 2017-04-20 14:03:54 +03:00
blagoev 8b1bec1123 enable android build on windows 2017-04-20 14:03:54 +03:00
blagoev a33577eccb remove obsolete test nosync targets 2017-03-30 11:24:46 +03:00
blagoev b7095f4a70 revert some test logic for tests in Debug 2017-03-27 19:18:56 +03:00
blagoev d23d60f272 refactor test.sh to use npm commands
fixed license-check npm command
added test-runners npm command
2017-03-27 19:18:56 +03:00
blagoev edf4cb5760 rewrite most test commands to be platform agnostic 2017-03-27 19:18:56 +03:00
blagoev f54e963b1b make tests Debug arg case insensitive 2017-03-16 12:15:20 +01:00
Yavor Georgiev db8ebd9333 Node.js Win32 support (#864)
* Remove the windows install check

* Node.js Win32 support

* Bring back the `REALM_HAVE_CONFIG` definition

* Download core for Windows when building

* Implement cross-platform node platform.cpp with libuv

* wip

* Make jasmine run quicker

https://github.com/jasmine/jasmine/issues/1204

* Wait for worker process to close in AsyncTests

* Cross-platform paths in tests

* Normalize path separator for forward slash on Windows

* MSVC exception voodoo

* cross-platform uv_cwd

* fix linux build

* make the prepublish script cross-platform

* Disable encryption tests on windows

* ignore vendor/realm-node

* jenkinsfile work

* Only run the prepublish script for publish and pack

* Jenkinsfile work

* Include gyp files in package

* rewrite default_realm_file_directory()

* fix React Native Android build

* delete all realm artifacts in remove_realm_files_from_directory

* bring back build environment variables

* node-pre-gyp windows

* Update CHANGELOG.md
2017-03-07 23:24:30 +01:00
Kristian Dupont 9eaba13f12 Validate that dependencies have valid licenses (#841) 2017-02-06 11:33:14 +01:00
Yavor Georgiev 0c6000a733 Enable running android sync tests on macOS (#834)
* start ROS and forward ports when running android tests on macOS

* rework AuthError so JSC likes it
2017-02-02 02:41:27 +01:00
Yavor Georgiev 9d1d970b1f Sync Session API (#825)
* Add Session class and expose it to JS

* Add error property on the sync config object for the event handler

* tests

* refactor access token refresh

* chrome debugging
2017-02-01 14:18:59 +01:00
Kristian Dupont 0c9c5ac407 Add missing chrome debugging apis for Sync.User (#801)
* Add user tests

* Add Sync member to Realm

* Add a simple test for addListener

* Introduce browser User class

* Introduce Sync.User proxy

* Fix User.all

* Add User.logout

* Remove some console.log statements

* Update rpc.cpp from tests-folder

* Use user.current from user-methods, not cpp

* remove user.current from two missing places

* Start server in realmjs and react tests

* Add user tests

* Add Sync member to Realm

* Add a simple test for addListener

* Introduce browser User class

* Introduce Sync.User proxy

* Fix User.all

* Add User.logout

* Remove some console.log statements

* Update rpc.cpp from tests-folder

* Use user.current from user-methods, not cpp

* remove user.current from two missing places

* Start server in realmjs and react tests

* Replace needle with node-fetch

* Make AuthError work in the browser

* Allow for persistent callbacks

* Expose _authenticateRealm to native

* Use clear_test_state in roc

* Streamline test inclusion

* Fix login tests

* Promisify testLogin()

* Disable AsyncTests for now

* Mode jasmine timeout to spec/unit_tests.js

* Avoid use of global for fetch module

* Only include user-tests is sync is enabled

* Skip ROS for android tests

* Add some comments about persistent callbacks

* Fix results-test

* Run async-tests in node

* Add a comment about (user object)

* Cache all users in User.current and return promises in fetch

* node_require async-tests so RN doesn't try and package them

* Add missing parenthesis
2017-01-31 14:07:29 +01:00
Yavor Georgiev 12bde1ed35 Improve CI builds relying on Chrome (#796)
* Use ES6 Proxies to implement collections in the Chrome debugger

* rework realm-test-names event

* move React stuff on the CPH mac mini

* use node with npm3

* remove debugging aid code
2017-01-11 18:22:41 +01:00
Kristian Dupont 2187667650 Always install node binaries except on Windows (#790) 2017-01-11 11:12:43 +01:00
Mark Rowe c4b22a160a Update to sync v1.0.0-BETA-6.3 (#776)
* Update to sync v1.0.0-BETA-6.3.

This requires updating to current object store master to accommodate the
changes to sync error reporting.

* Add some include folder search paths

* Add thread_safe_reference to the RealmJS target
2017-01-04 15:07:25 +01:00
Kristian Dupont afa5a57024 Fix typo in test.sh 2017-01-04 11:55:54 +01:00
Emanuele Zattin 87d4952302 Fix a typo 2017-01-03 12:55:36 +01:00
Emanuele Zattin d4a51e9996 Make the symlink relative 2017-01-03 12:40:36 +01:00
Emanuele Zattin 142b6fadaa Another fix 2017-01-03 12:21:23 +01:00
Emanuele Zattin 08b2a3da43 Got ln arguments order wrong... again 2017-01-03 11:43:21 +01:00
Emanuele Zattin 952b3f719b Fix Jenkins builds by rewriting the symlink 2017-01-03 11:32:30 +01:00
Emanuele Zattin 3afb9ff017 Fix some Ruby 2017-01-03 10:16:19 +01:00
Emanuele Zattin c7a7d1228b Make shellcheck happy about test.sh 2017-01-02 13:35:45 +01:00
Karl Kuehn 40b3b0d6e7 improve resetting the iOS simulator (#710)
Reworks how the simulator is handled to ensure that we are using a single targeted simulator platform (e.g.: iOS 9 on iPhone 5s), and that the Simulator is in good shape to handle that.
2016-12-22 10:02:15 -08:00