Commit Graph

179 Commits

Author SHA1 Message Date
ekatek
209fa3a59b reload project when restarting app in development mode 2014-05-25 19:13:15 -07:00
ekatek
7339d0e33f minor bug cleanup to make tests pass 2014-05-21 12:38:17 -07:00
David Glasser
52e74df7b1 Default orderKey algorithm 2014-05-19 16:10:23 -07:00
Emily Stark
67352e18d4 Remove unnecessary sandbox env var 2014-05-13 15:24:44 -07:00
Emily Stark
9e3d6fc5cf Merge branch 'package-stats' into packaging
Conflicts:
	tools/commands.js
2014-05-13 13:43:48 -07:00
Emily Stark
573ef7489f Set test package stats server in environment variable 2014-05-13 11:58:31 -07:00
David Glasser
e4000c6808 Merge branch 'devel' into packaging
Conflicts (around utils.quotemeta):
	tools/packages.js
	tools/utils.js
2014-05-12 17:06:11 -07:00
Avital Oliver
6696e2751e Respond to Emily's code review comments 2014-05-12 16:45:49 -07:00
Avital Oliver
a51b4697ae Test that userId is recorded when sending package stats. 2014-05-12 16:24:36 -07:00
Emily Stark
4bb7bb8161 Fix stats reporting test date 2014-05-12 11:02:39 -07:00
Avital Oliver
14f6570d73 WIP: Failing test for reporting stats on 'meteor bundle' 2014-05-09 11:25:42 -07:00
Emily Stark
a1c6195688 Make our failing partial stats test pass 2014-05-08 18:56:03 -07:00
Avital Oliver
0d767e746f WIP: The beginning of a (failing) end-to-end test for stats reporting 2014-05-08 16:38:51 -07:00
ekatek
c2edefa9d0 automated git merge complete 2014-05-08 16:29:52 -07:00
Felix Rabe
3431c66c16 Fix occurrences of "cd dirname $0"
They are not safe for spaces in paths. There might be other places to look for trouble.

I've run the following command to produce this commit: (on OS X, copy-and-pasting the below exactly)

    find . -type f -name '*.sh' -print0  |  # Find all .sh files
        xargs -0 fgrep -H -- '`'         |  # See all places with backticks in them
        fgrep 'cd `dirname $0'           |  # I deemed these problematic (variable assignments are safe)
        cut -d ':' -f 1                  |  # Take the <file> from <file>:<line> produced by "grep -H"
        tr '\n' '\0'                     |  # Also here, spaces can be problematic - always do "xargs -0"!
        xargs -0 -- sed -i '' 's/cd `dirname $0`/cd "`dirname "$0"`"/g'

The significance of adding the two levels of "'s can be verified by running the following in your Terminal:

    $ node -e 'console.log(process.argv.splice(1))' -- `echo 1   2`
    [ '1', '2' ]

    $ node -e 'console.log(process.argv.splice(1))' -- "`echo 1   2`"
    [ '1 2' ]

    $ node -e 'console.log(process.argv.splice(1))' -- "`echo "1   2"`"
    [ '1   2' ]
2014-05-07 17:51:09 -07:00
ekatek
d2d82556f3 add release file to this test 2014-05-06 13:42:18 -07:00
David Glasser
314c8a1a34 We no longer need to pass --force to npm install
(Also, make a test assertion useful: assert.equal's default truncation
is horrible.)
2014-04-30 18:03:53 -07:00
David Glasser
3cbcf05438 remove 'meteor run-command'
We never really used it for anything, and it uses uniload in a
now-unsupported way (uniload in a built release now only can load a
predefined set of prebuilt packages)
2014-04-28 19:59:59 -07:00
ekatek
5cda5f1877 don't contact the package server unless you need to 2014-04-24 20:04:41 -07:00
David Glasser
fbde0a00a7 Merge branch 'publish-packages' into library-refactor
Conflicts:
	packages/domutils/package.js
	packages/handlebars/package.js
	packages/htmljs/package.js
	packages/liverange/package.js
	packages/spark/package.js
	packages/universal-events/package.js
	tools/bundler.js
	tools/help.txt
	tools/packages.js
	tools/run-app.js
	tools/run-mongo.js
	tools/skel/.meteor/packages
2014-04-24 17:01:36 -07:00
Emily Stark
2b27950619 Add a basic test for 'meteor list-sites' 2014-04-17 16:58:08 -07:00
ekatek
2f990d85f5 watch plugin files for change 2014-04-15 21:53:22 -07:00
ekatek
e4c7c28a6a some more tests 2014-04-15 01:31:36 -04:00
ekatek
b8c9222a27 some tests: adding packages and editing in place 2014-04-15 00:23:12 -04:00
David Glasser
72c9657b0e Test that observeChanges works over a failover 2014-04-10 16:56:32 -07:00
David Glasser
498e572230 Make self-test less flaky with more waits. 2014-04-07 20:09:30 -07:00
ekatek
77358ba28b more test cleanup 2014-04-04 19:28:28 -07:00
ekatek
271228ceb7 Tests work except for some newly-added timeouts around package loading and releases 2014-04-04 18:42:23 -07:00
ekatek
5b11956bed Modify test app packages to include versions 2014-04-04 18:42:23 -07:00
David Glasser
3405644027 Fix runner.stop() while waiting for file change
Before this, if the runner decided to stop (eg, because mongod is
crashing too much) while waiting for file change, it would crash due to
an attempt to wait within a fiber.  Fixing that bug by adding an inFiber
would then lead to the process just not exiting, because nothing stops
the wait-specific future.
2014-04-02 21:16:59 -07:00
David Glasser
d287d36bac Make run tests less flaky 2014-03-31 20:03:01 -07:00
Andrew Wilcox
6f4f723c6a Allow user to set heartbeat interval to 0 to disable sending pings.
Add test flag `_respondToPings` which allows tests to disable
responding to pings.
2014-03-30 20:03:29 -07:00
Andrew Wilcox
8709365598 Stop heartbeats on client side disconnect.
Use heartbeatInterval: 0 to disable heartbeats for testing.

No need to add `_internal` to the public connection API because we
can get to the internal session through the server.
2014-03-30 20:03:29 -07:00
Andrew Wilcox
865eb30015 Move protocol out of heartbeat.js 2014-03-30 20:03:29 -07:00
Andrew Wilcox
0ac3bf9d4b Move the ddp-heartbeat test into tools/tests. 2014-03-30 20:03:29 -07:00
David Glasser
b2632d45c5 Move boilerplate HTML from tools to webapp
This breaks a strong dependency between the webapp package and the
bundler.  Now we can change the standard page format, add more hooks,
etc without changing the tools (and hot code push works properly).

This is an incompatible change to the definition of the
browser-program-pre1 format: it no longer contains a "page" field
pointing to a boilerplate defined using ad hoc ##FOO##
substitution. Instead, the manifest can contain "head" and "body"
entries for data added with compileStep.appendDocument().  (Note that in
Blaze, <body> in a template file no longer calls appendDocument.)

WebApp.addHtmlAttributeHook callbacks now return attribute objects (like
those that Spacebars supports) rather than strings.
2014-03-24 20:10:39 -07:00
ekatek
cdaa8aa230 merge 2014-03-21 15:30:53 -07:00
ekatek
60ffe51f22 meteor --get-ready and some misc cleanup 2014-03-20 12:31:55 -07:00
Emily Stark
70689568f6 Make final logout unconditional for logs-mongo tests 2014-03-14 18:50:48 -07:00
Emily Stark
ff8abb4b04 Call logout in selftests that log in.
This avoids wracking up huge numbers of login tokens for the test
user. It would be nice to have these automatically cleaned up, but this
will do for now.
2014-03-14 18:50:48 -07:00
Emily Stark
85c7fa93e6 Add missing selftest 'var' 2014-03-14 18:50:48 -07:00
Geoff Schmidt
688f7b3643 rename unipackage.load to uniload.load 2014-03-13 21:47:12 -07:00
Geoff Schmidt
985ffea9fa WIP - make package build run the constraint solver.
move constraint solver from a package into the tool.
unipackage loading is broken; next step is to fix that
2014-03-12 19:02:47 -07:00
Emily Stark
e981b0c629 Bump run test timeouts 2014-02-26 14:26:13 -08:00
David Glasser
3cd00c89af Avoid stack trace with empty '.meteor/release' file
This is not a regression against 0.7.0.1.

Fixes #1849.
2014-02-21 15:00:33 -08:00
Emily Stark
222ac4ca65 Bump more self-test timeouts 2014-02-21 10:22:03 -08:00
Emily Stark
9669bbe368 Bump some run test timeouts 2014-02-20 17:25:14 -08:00
Emily Stark
ab3577d3d5 Update tests for changed accounts UX 2014-02-19 23:44:04 -08:00
Emily Stark
eee4c0c9e7 Add test for deploying with expired credentials 2014-02-19 19:36:54 -08:00
Emily Stark
1f8760acfc Update 'meteor claim' test for new prose 2014-02-19 15:52:31 -08:00