Commit Graph

892 Commits

Author SHA1 Message Date
Tom Coleman
7a928db4b8 Switch over test expectations 2015-11-25 16:27:36 +11:00
Ben Newman
17b7031949 Fix test of Error line numbers rewritten using source maps.
This test was broken by the addition of a `}` in commit ed17924940.
2015-11-17 14:02:52 -05:00
Ben Newman
ed17924940 Add braces to every if/for(-in)/while statement in tools directory. 2015-11-13 12:25:19 -05:00
mbrookes
b64428e24b Add 'Did you mean?' reminders for Rails developers
Closes PR #5593

[stubailo: squash commits]
2015-11-02 16:22:06 -08:00
Tom Freudenberg
8a24a1b2ba Make Script More Portable With #!/usr/bin/env 2015-11-01 22:04:10 +01:00
Sashko Stubailo
dd2f166fe9 Don't throw an error when using deprecated package asset API
Fixes #5458
2015-10-21 14:34:20 -07:00
Sashko Stubailo
a23cc02492 Merge branch 'master' into devel
Conflicts:
	History.md
	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
	packages/babel-compiler/package.js
	packages/ecmascript/package.js
	packages/sha/package.js
	tools/upgraders.js
2015-09-21 20:12:55 -04:00
Sashko Stubailo
11248f7dbc Make self test always add the newest upgraders 2015-09-11 16:32:22 -07:00
Sashko Stubailo
3a0fc48b78 Remove command from test that doesn't exist anymore 2015-09-11 15:50:13 -07:00
Sashko Stubailo
38d0c89597 Fix parse stack test to convert file paths 2015-09-11 15:01:50 -07:00
Sashko Stubailo
ff3f2ee31b Fix create on Windows; don't copy git hooks on Windows 2015-09-10 20:52:21 -07:00
Sashko Stubailo
0bb7c7c0b2 New addAssets package.js API; same file can be source and asset
1. Add `addAssets` API to `package.js`
2. Rename `getSourcesFunc` to `getFiles` in internal code
3. Changed `PackageAPI#sources` to `PackageAPI#files` with a new structure that
   has separate objects for assets and sources
4. Added some tests for different error conditions
5. The same file can now be a source and an asset
2015-09-02 13:14:02 -07:00
Sashko Stubailo
b381a675bf Fix create test 2015-09-02 11:21:22 -07:00
Sashko Stubailo
94ed0dac1a Fix bundle test 2015-09-02 11:21:14 -07:00
ekatek
ef13ed9926 use selftest to run tests against galaxy
UX Changes:
  - Added a `--galaxy` option to selftest to run tests against galaxy.
    Self-test will NOT run those tests without this option. Self-test will not run any
    other tests WITH this option.

    The motivation here is two-fold:
     - We want to make it easy to use self-test to test Galaxy without running a bunch
       of extra tests. At least, we want this right now, while Galaxy is still in development.

     - Galaxy is currently pretty unstable&slow; we don't want to run our regular test suite against
       Galaxy all the time and slow down the tool development process. Additionally, the environment
       variables required by Galaxy are a pain to set.

    This is a TEMPORARY situation. Eventually, we will want to either merge the two tests together
    (especially once we rotate out Mother...) or we will have a separate unrelated Galaxy test suite
    and move a lot of this stuff here. With time, it will also become more obvious what a better default
    (run Galaxy tests always/run Galaxy tests never/run non-Galaxy-specific tests against Galaxy) is.

    The changes should be pretty self-contained.

 - Added some number of environment variables to use with --galaxy tests. This is a bit complicated
   and will be documented in
     https://mdg.hackpad.com/GalaxyECS-Admin-tasks-RTXJ5YW8pDv#:h=Testing-Galaxy-with-selftest.

Walkthrough:
    - galaxy-utls.js contains basic utils for running Galaxy tests. Use environment variables, etc.

    - galaxy.js contains the acutal test

    - simple-app is an app that responds to HTTP requests and serves some html that we can test to be running

    - minor changes to config.js to allow overriding of the domain name

    - minor changes to auth.js to allow us to automatically login as the (new) test user and use that
      login to start a DDP collection.

    - move a function out of deploy-settings.js into test-utils.js

    - some minor additions to test-utils.js

Reviewed in https://github.com/meteor/meteor/pull/4997.
2015-08-26 19:06:13 -07:00
Martijn Walraven
e4bb7726ca Make Cordova self-tests pass again 2015-08-26 19:26:56 +02:00
Martijn Walraven
b8f853db37 Make Cordova self-tests pass again 2015-08-26 19:26:55 +02:00
Martijn Walraven
a5a5b4c758 Use parsed run targets to detect a run on a device
This fixes a bug where test-packages on a device sets localhost as the
mobile server URL.
2015-08-26 19:26:55 +02:00
Martijn Walraven
a5b49b8aa4 Exit when running platforms are removed or plugins changed 2015-08-26 19:26:54 +02:00
Martijn Walraven
db0d6ca41d Fix tests for parseServerOptionsForRunCommand that stopped working due to recent changes 2015-08-26 19:26:53 +02:00
Martijn Walraven
f96ab94f7c Remove failing check in test that assumes we uninstall all plugins on error
I’ve removed the code that uninstalls all plugins on error because
there is no indication this is still an issue (nothing found on the
Cordova JIRA).
2015-08-26 19:26:53 +02:00
Martijn Walraven
68607c39f9 Add Cordova CLI dependency to dev bundle and use it from tests 2015-08-26 19:26:53 +02:00
Martijn Walraven
87b11bdab5 Cordova refactoring and change of runner behavior
- Refactored code in tools/cordova and introduced CordovaBuilder and
CordovaRunTarget classes
- CordovaRunner now builds and runs the project as part of the main
runner loop
- Some code cleanup and ES2015 conversions
2015-08-26 19:26:49 +02:00
Martijn Walraven
92041ad829 Fix imports because of tools/ reorganization 2015-08-26 19:26:48 +02:00
Martijn Walraven
1fd10d7374 Fix imports because of tools/ reorganization 2015-08-26 19:26:48 +02:00
Martijn Walraven
5556c85b81 Make Cordova tests pass by not expecting Android SDK prompt 2015-08-26 19:26:45 +02:00
Martijn Walraven
47ff9a13aa Clean up Cordova code in commands.js
- Refactor server options parsing, move it from utils.js to commands.js
- Move remote device warning to CordovaRunner
2015-08-26 19:26:45 +02:00
Sashko Stubailo
863be787ab Fix buildmessage concatenating stack traces 2015-08-10 20:08:52 -07:00
Sashko Stubailo
e8bb6f400d Fix parse-stack tests 2015-08-10 15:01:18 -07:00
Sashko Stubailo
ab4edb1cbf Add package to make test pass 2015-08-06 17:09:26 -07:00
David Greenspan
2c36e9efb0 Oops, commit missing files from self-test app 2015-08-06 16:49:27 -07:00
David Greenspan
67b9da63ad Throw error if package is prodOnly and debugOnly
With self-test.
2015-08-06 16:49:26 -07:00
David Greenspan
a63dc1f5c2 Support prodOnly in addition to debugOnly
It's very useful to be able to include code only in production.  It's
useful for React integration, but presumably also for many apps.

* Add prodOnly boolean flag alongside debugOnly in Package.describe

* Packages the set prodOnly to true auto-depend on isobuild:prod-only
  (making them error in the old tool where prodOnly isn't supported)

* The `includeDebug` boolean build option is replaced by a string
  named buildMode, which can be 'development' or 'production', just
  like minifyMode.

Tested by self-test.
2015-08-06 16:49:26 -07:00
Sashko Stubailo
a315eca4d7 Fix test and parse stack 2015-08-06 16:41:19 -07:00
Sashko Stubailo
ff79737c81 Add DDP dep to package 2015-08-06 16:41:19 -07:00
Sashko Stubailo
0c2e76d780 Add package dep to linting app 2015-08-06 16:41:19 -07:00
Slava Kim
3d2282d9ad fix imports for tests for tool-testing 2015-08-06 16:39:01 -07:00
Slava Kim
39d8aef3d9 move files into console/ tool-testing/ 2015-08-06 16:39:00 -07:00
Sashko Stubailo
90f36cc3eb Fix the hot code push tests by adding packages 2015-08-06 16:20:08 -07:00
Sashko Stubailo
3403b4c77f Fix test that used session 2015-08-06 16:20:08 -07:00
Slava Kim
f49de5b9ac Move files connecting to Meteor-provided services
to a separate folder
2015-08-06 16:00:39 -07:00
Slava Kim
a1f54a54ae Fix tests missing the blaze packages 2015-08-06 14:11:12 -07:00
Sashko Stubailo
e237c9890c Remove versions file 2015-08-05 15:17:18 -07:00
Sashko Stubailo
a50095b2a6 Remove lots of mentions of meteor-platform in tests 2015-08-05 15:15:13 -07:00
Slava Kim
6b1bb038d8 Move files into tools/fs 2015-08-03 22:09:28 -07:00
Slava Kim
8a8db83d29 Move files into tools/utils 2015-08-03 20:32:38 -07:00
Slava Kim
36b542f822 move files into tools/packaging 2015-08-03 16:03:15 -07:00
Slava Kim
5472331fc5 Move isopackets.js to tool-env
Because it is only used in tool to load packages, so it is sort of a
setup environment file.
2015-08-01 14:13:53 -07:00
Slava Kim
5c21cc8490 Fix the test to match new error message 2015-08-01 13:01:57 -07:00
Slava Kim
08005bfe0a move runners into folder 'runners' 2015-08-01 13:01:49 -07:00