Josh Owens
45043c6996
tinytest: Use indexOf for string matching
2014-02-18 17:33:09 -08:00
David Greenspan
dcecf0a765
show diffs in test results
...
Conflicts:
packages/spacebars/compile_tests.js
packages/test-in-browser/driver.js
2014-02-03 21:58:27 -08:00
David Glasser
738ffe50a1
fix missing expect() call in password-tests
...
add a console.trace that helps debug it
2013-12-12 00:21:57 -08:00
David Glasser
8de0ae58dc
tinytest: test.equal should use EJSON.equals
2013-12-11 17:42:04 -08:00
Slava Kim
21b5e2acd8
Look for a file name ending with ":tests.js" as linker produces only such files.
2013-11-03 21:44:01 -08:00
David Glasser
9f38258b54
Drop all @export lines. Add api.exportSymbol instead.
2013-07-25 18:54:40 -07:00
Geoff Schmidt
3d1c09794f
Comprehensive namespace cleanup.
2013-07-25 18:54:40 -07:00
Geoff Schmidt
0b2d536e38
Clean up error reporting in HTML template scanner
2013-05-13 11:56:51 -07:00
David Glasser
6b48e8bd8a
stuff that doesn't have conflicts
2013-05-13 11:51:50 -07:00
Andrew Wilcox
1f7627582b
Clearer error message when calling Meteor.Collection without "new".
...
Fixes #457 .
Add an optional "expected" predicate to Tinytest's throws.
2013-05-06 16:04:18 -07:00
David Glasser
5a5204e3a4
Remove closures around package files. (hint: git blame -w)
...
The bundler now adds closures around client files and the server adds closures
around server files.
2013-03-19 15:13:53 -07:00
Naomi Seyfer
aefe645f6c
work towards allowing you to solo groups of tests easily
2013-02-18 12:09:03 -08:00
David Glasser
d2ae5f7e1c
Replace almost all uses of Meteor.uuid with Random.id.
2013-02-12 23:55:19 -08:00
David Glasser
99bceb936e
Replace Mongo binary types with Meteor binary types on the way in and out of
...
Mongo.
(Should consider doing the same with ObjectId.)
(Also, still need to delete 0.2.15.)
2013-01-29 22:43:53 -08:00
Naomi Seyfer
c10c7f7c91
Binary support in BSON (dev bundle wise) and in Mongo
...
Unfortunately, the Node Mongo driver wants to use its own proprietary
Binary type for binary data. We want to use Uint8Array, instead, so
we're going to be using a patched version of the BSON library that
allows this.
It allows us to install a handler for USER_DEFINED binary types, which
in our case we set up to recognize, accept, and provide Uint8Array
2013-01-24 14:47:37 -08:00
Naomi Seyfer
76dba0150d
Fix tinytest include to use _.isEqual
2013-01-17 15:42:34 -05:00
Naomi Seyfer
3b16ca8aa6
Various tests for new data types in DDP:
...
Test for a document with a date; full stack
Test and fix for method invocation with a Date
Tests for literal
2013-01-17 15:29:51 -05:00
David Glasser
25af4e5cdb
http: Fix test failure on FF caused by 3bada2a.
2013-01-03 14:56:02 -08:00
David Glasser
5b066c77a0
Remove stray debugging log from previous commit.
2012-11-17 17:53:00 -08:00
David Glasser
637692db31
Add filename and line number to test failures using a v8 stack trace API.
...
This works for server tests (Node uses v8) or for client tests in Chrome. Uses
a simple heuristic to guess which line in the stack trace is most likely to be
the actual high-level assertion. Adjustments to this heuristic and
implementations for other browsers are welcome :)
2012-11-17 17:46:57 -08:00
David Greenspan
4b25e2d82d
fix tinytest error message bug
2012-09-24 12:12:42 -07:00
David Glasser
5e622215ba
Change all publicly documented APIs to use camelCase.
...
For now, the old names still work as well.
This includes:
- Meteor.isServer/isClient
- this.isSimulation in methods
- Context.onInvalidate
- Meteor.status().retryCount/retryTime
Remove old backwards-compatibility "Sky" alias for "Meteor".
Update all examples in the docs to use camelCase.
Delete unused docs/client/projects.html file.
2012-09-17 14:26:45 -07:00
David Greenspan
5d9ff80461
Remove special Tinytest timer functions
2012-09-16 00:34:54 -07:00
David Greenspan
4bd98aa38a
tinytest/run method now threads the write fence more than before
2012-04-17 20:13:22 -07:00
David Greenspan
d1b7c60360
tinytest: deal correctly with 0 server tests and async join
2012-04-11 15:01:52 -07:00
David Greenspan
81c1de24e3
run tests "in parallel" on client if sync and in different groups
2012-04-03 22:37:12 -07:00
David Greenspan
bf04fccb72
new query diffing algorithm with fuzz tests
2012-04-03 22:37:11 -07:00
Nick Martin
5a1ecf6d16
Events test helper, plus misc test fixups.
2012-03-28 18:26:15 -07:00
David Greenspan
4f0c7d061d
test.equal -> deep compare, not stringify compare
2012-03-28 18:26:15 -07:00
Geoff Schmidt
3b520997b1
tinytest: support some additional assertions
2012-03-16 21:11:07 -07:00
Geoff Schmidt
784529a9af
tighten up exception reporting in async tests
2012-03-16 02:55:14 -07:00
Geoff Schmidt
dc880b1d1e
Additional tests for Meteor._delete
2012-03-07 01:47:35 -08:00
Geoff Schmidt
168bc8e570
FF10 fix -- ignore the spurious argument that
...
FF10 passes to timer callbacks.
2012-03-07 00:24:53 -08:00
Geoff Schmidt
3dc8dc2887
Permit fine-grained control of database polling.
...
You can now used invalidation keys to specify exactly what will get polled when.
2012-03-06 15:44:42 -08:00
Geoff Schmidt
76c57526f7
rework public API for defining tests
2012-03-02 05:22:40 -08:00
Geoff Schmidt
7729b7d887
make private tinytest symbols private
2012-03-02 05:13:41 -08:00
Geoff Schmidt
0822bd410f
rework public API for running tests
2012-03-02 05:08:06 -08:00
Geoff Schmidt
74dbbf3419
clean up test reporting plumbing
2012-03-02 04:43:03 -08:00
Geoff Schmidt
601f20553e
Get rid of all global state in tests
2012-03-02 04:22:57 -08:00
Geoff Schmidt
cab5afbb91
move test reporting functions out of globals
2012-03-02 03:57:30 -08:00
Geoff Schmidt
c2302c9e46
factor dynamic variable fully into tinytest.js
2012-03-02 03:27:55 -08:00
Geoff Schmidt
bc69d57e16
Give each test run a unique ID
2012-03-02 02:32:32 -08:00
Geoff Schmidt
97c3e50379
Support server-side tests.
2012-02-23 06:08:09 -08:00
Geoff Schmidt
e0722bedf8
basic livedata method invocation tests
2012-02-21 01:40:15 -08:00
Geoff Schmidt
8cf92b18ef
reinstate ability to open debugger on a test
...
(also, restore ability to catch exceptions in tests)
2012-02-20 23:58:59 -08:00
Geoff Schmidt
6acaeb0ee6
refactor tinytest for async
2012-02-20 22:12:31 -08:00
David Greenspan
f2e6838691
fixes to minimongo, test driver, and tests
2012-01-28 00:10:35 -08:00
David Greenspan
f68c30136e
show test short names
2012-01-27 20:02:25 -08:00
David Greenspan
ecb82782eb
show test run times in results
2012-01-27 20:02:25 -08:00
David Greenspan
ef4a7b91af
new, nice-looking test driver; pretty much full-featured except lacks stop_on_failure
2012-01-27 20:02:24 -08:00