Commit Graph

147 Commits

Author SHA1 Message Date
Thomas Goyne d278649fee Extract the ruby script for finding iOS simulators to a separate file 2017-09-26 12:23:10 -07:00
Thomas Goyne 2298609ce5 Merge remote-tracking branch 'origin/master' into tg/merge-master-to-2.0.x
* origin/master: (23 commits)
  Fix api doc error
  fix progress notifications registrations
  Fix typo in Github issue template
  Fix port conflict between RN >= 0.48 and RPC server (#1294)
  Disable testAddListener when running in chrome
  Ensure RN has an event loop running for async tests
  Make permission tests better handle server delays
  Fix race conditions in testAddListener
  Separate build and test steps in xcode to reduce chance of hitting "Early unexpected exit"
  Ignore errors when sourcing nvm.sh
  Don't forward arguments to nvh.sh
  Skip sourcing nvm.sh if it's already available
  Fix some shellcheck warnings
  Ensure node 6.5.0 is installed on CI
  Build realm from source for each test-runner test
  Improve error reporting for incorrect argument counts for Realm methods
  Use the same error messages in the RPC code as the regular code
  Silence an unused variable warning when building with sync disabled
  Check the exception message in all Realm tests which assert an exception is thrown
  Don't discard the actual error message in validated_get_X
  ...
2017-09-25 09:40:56 -07:00
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
Thomas Goyne f3f51ece76 Separate build and test steps in xcode to reduce chance of hitting "Early unexpected exit" 2017-09-18 22:32:41 -07:00
Thomas Goyne d04a45b8d1 Ignore errors when sourcing nvm.sh
It fails spuriously if it fails to understand the version of system node.
2017-09-18 21:34:34 -07:00
Thomas Goyne e1f3cd638f Don't forward arguments to nvh.sh 2017-09-18 21:34:34 -07:00
Thomas Goyne 5189915980 Skip sourcing nvm.sh if it's already available 2017-09-18 16:23:35 -07:00
Thomas Goyne ada601354c Fix some shellcheck warnings 2017-09-18 16:07:07 -07:00
Thomas Goyne 604968a987 Ensure node 6.5.0 is installed on CI 2017-09-18 12:20:09 -07:00
Thomas Goyne 70739d632b Build realm from source for each test-runner test
Without this node-pre-gyp will instead download the prebuilt binary and test
that, and I couldn't find a way to persuade node-pre-gyp to "download" the
locally built copy.
2017-09-18 11:58:37 -07: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 fa0016ba6b Merge branch 'master' of github.com:realm/realm-js into 2.0.x 2017-09-08 14:54:56 +02: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
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
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
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 f54e963b1b make tests Debug arg case insensitive 2017-03-16 12:15:20 +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
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
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
Nabil Hachicha b9706b1e80 Nh/fixes 740 (#743)
* Fix Android testing CI job, we don't use the packager since we build the Release bundle
* Test run on Docker-cph-01 or Docker-cph-02
2016-12-20 19:01:45 +00:00
Radu Tutueanu 50d8a55d3f Use the KILL signal when killing the server 2016-12-07 13:28:05 +01:00
Adam Lebsack 88e840f315 Merge remote-tracking branch 'origin/master' into ajl/jenkinsfile 2016-11-25 11:33:48 +01:00
Ari Lazier cdcefa5cfa use newer node version 2016-11-22 07:07:52 -08:00
Adam Lebsack 014191a663 Added jenkinsfile 2016-11-22 10:32:35 +01:00
Karl Kuehn 8d75898fe5 better report errors in test/build
fix for error visibility from #639
2016-11-21 16:48:03 -08:00
Karl Kuehn d5aaab1308 fix case where xcpretty is not installed 2016-11-18 14:00:30 -08:00
Ari Lazier ab7061aa29 undo test.sh change 2016-11-15 11:22:15 -08:00
Ari Lazier 038a025b81 [0.15.0] Bump version 2016-11-15 11:10:07 -08:00