Commit Graph

98 Commits

Author SHA1 Message Date
Leonardo Venturini
d9692c8b5e prevent context from tinytest to trickle down to actual test 2024-10-24 07:49:55 -04:00
Leonardo Venturini
462b48edd3 Revert "run test function in fresh environment"
This reverts commit e7d8d32291.
2024-05-13 08:55:03 -04:00
Leonardo Venturini
e7d8d32291 run test function in fresh environment 2024-05-13 08:48:27 -04:00
Leonardo Venturini
b544f3c4f4 apparently there is no need for this 2024-05-09 08:02:47 -04:00
Leonardo Venturini
c6df7cb6ab make it simpler to run tests in async functions 2024-05-08 07:44:41 -04:00
Gabriel Grubba
60e2dd67bb Update to get testname in the client 2024-04-03 16:04:06 -03:00
Gabriel Grubba
c2eb586f27 ci: updates on the ci 2024-04-03 15:35:40 -03:00
denihs
7cb79a7a13 Merge branch 'devel' into release-3.0
# Conflicts:
#	.circleci/config.yml
#	docs/generators/changelog/script.js
#	docs/history.md
#	meteor
#	npm-packages/babel-preset-meteor/package.json
#	npm-packages/cordova-plugin-meteor-webapp/package.json
#	npm-packages/eslint-plugin-meteor/scripts/dev-bundle-tool-package.js
#	npm-packages/meteor-babel/package-lock.json
#	npm-packages/meteor-babel/package.json
#	package-lock.json
#	package.json
#	packages/accounts-base/accounts_server.js
#	packages/accounts-base/package.js
#	packages/accounts-oauth/package.js
#	packages/accounts-password/package.js
#	packages/accounts-password/password_server.js
#	packages/accounts-passwordless/package.js
#	packages/accounts-passwordless/passwordless_server.js
#	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
#	packages/babel-compiler/package.js
#	packages/boilerplate-generator/package.js
#	packages/browser-policy-content/package.js
#	packages/constraint-solver/catalog-loader.js
#	packages/constraint-solver/constraint-solver-input.js
#	packages/constraint-solver/constraint-solver-tests.js
#	packages/constraint-solver/constraint-solver.js
#	packages/constraint-solver/package.js
#	packages/constraint-solver/solver.js
#	packages/crosswalk/package.js
#	packages/ddp-rate-limiter/package.js
#	packages/ddp-server/package.js
#	packages/ecmascript/package.js
#	packages/facebook-oauth/package.js
#	packages/fetch/package.js
#	packages/launch-screen/package.js
#	packages/logging/package.js
#	packages/logic-solver/logic_tests.js
#	packages/logic-solver/package.js
#	packages/meteor-tool/package.js
#	packages/meteor/package.js
#	packages/mobile-experience/package.js
#	packages/modern-browsers/package.js
#	packages/modules/.npm/package/npm-shrinkwrap.json
#	packages/modules/package.js
#	packages/mongo/package.js
#	packages/non-core/blaze
#	packages/npm-mongo/.npm/package/npm-shrinkwrap.json
#	packages/npm-mongo/package.js
#	packages/oauth/package.js
#	packages/oauth/pending_credentials.js
#	packages/package-version-parser/package.js
#	packages/react-fast-refresh/package.js
#	packages/service-configuration/package.js
#	packages/socket-stream-client/.npm/package/npm-shrinkwrap.json
#	packages/socket-stream-client/package.js
#	packages/standard-minifier-css/.npm/plugin/minifyStdCSS/npm-shrinkwrap.json
#	packages/standard-minifier-css/package.js
#	packages/test-in-browser/package.js
#	packages/test-in-console/package.js
#	packages/test-in-console/reporter.js
#	packages/tinytest/package.js
#	packages/tracker/package.js
#	packages/typescript/package.js
#	packages/webapp/.npm/package/npm-shrinkwrap.json
#	packages/webapp/package.js
#	scripts/admin/meteor-release-experimental.json
#	scripts/build-dev-bundle-common.sh
#	scripts/dev-bundle-server-package.js
#	scripts/dev-bundle-tool-package.js
#	tools/cli/commands.js
#	tools/fs/files.ts
#	tools/runners/run-all.js
#	tools/static-assets/skel-chakra-ui/package.json
#	tools/tests/apps/dynamic-import/.meteor/packages
#	tools/tests/apps/dynamic-import/package.json
2023-12-19 16:50:46 -04:00
Jan Dvorak
e84d5b9a54 Remove Fibers to align with devel 2023-11-05 18:34:12 +01:00
Jan Dvorak
3850dc1d44 Merge branch 'devel' into underscore/tinytest 2023-11-05 18:32:25 +01:00
denihs
e6b65acb27 - chore - tests breaking 2023-05-29 07:42:23 -04:00
denihs
f650be7b89 - using _AsynchronousQueue in the server
- continue for looping instead of breaking it
2023-02-06 14:56:37 -04:00
denihs
503f2b41f9 - _saveOriginals() is now async
- markAllReady() in the tests is now async
- removing unnecessary comments
2023-01-30 10:16:46 -04:00
Edimar Cardoso
28fb31b92d Refectory mongo packages
- Using isomorphy async methods with the suffix Async;
- Changing tests to use async methods on client and server
- Fix tests
2023-01-17 23:14:53 -03:00
denihs
ce22f2d548 - fixing all tests for accounts-password
- small fix for ddp-client, checking if the call isFromCallAsync. If yes, return the promise so we can get the result
- showing test name when it runs after process is done
2022-12-28 11:44:54 -04:00
denihs
f60bfc7f75 Revert "Revert "Merge pull request #12273 from meteor/release-2.9""
This reverts commit 5d19fec09b.
2022-12-12 10:17:42 -04:00
denihs
5d19fec09b Revert "Merge pull request #12273 from meteor/release-2.9"
This reverts commit 19e9e2082e, reversing
changes made to 644592cedc.
2022-12-12 09:53:19 -04:00
harryadel
c4923913a6 [tinytest] Remove underscore 2022-10-21 12:31:28 +02:00
Matheus Castro
ad77b6d89b Don't use Future directly on TinyTest package. Also adding helpers that will be used when adding async tests. 2022-10-14 00:18:47 -03:00
Filipe Névola
a031b77471 Fixing tests in mongo livedata and observe changes 2022-01-21 13:28:35 -04:00
filipenevola
508d11c670 Introducing only and onlyAsync to Tinytest (removing debug logs) 2021-08-02 15:47:26 -04:00
filipenevola
b58111d171 Introducing only and onlyAsync to Tinytest 2021-08-02 15:47:26 -04:00
Ben Newman
baf889695a Use Babel 7 to compile package and application code, too. 2017-12-05 09:52:54 -05:00
Ben Newman
b88cbab2a1 Handle errors from Promises returned by Tinytest.addAsync callbacks. 2017-11-23 14:17:49 -05:00
Ben Newman
0190801a7b Allow Tinytest callbacks to return Promise objects. 2017-11-22 20:08:10 -05:00
Ben Newman
ca76af8d49 Modernize tinytest by using ecmascript. 2017-11-22 18:40:37 -05:00
Mitar
9e399547e5 Allow access to Tinytest internals to be able to extend it.
PR #3541
2015-10-30 12:57:39 -07:00
Mitar
5dce3be167 Added more negative assertions. 2015-03-03 13:36:07 -08:00
David Glasser
396bfac14c Fix . 2015-02-25 15:06:52 -08:00
David Glasser
34c366faea Fix backwards logic of #3780. 2015-02-25 14:55:36 -08:00
David Glasser
c69e990152 $TINYTEST_FILTER to only run some tests
I have typed `if (! test.name.match(/foo/)) return` an average of 4
times a week for the past several years.  No more.
2015-02-25 14:55:36 -08:00
Mitar
1100dec36c Added message argument to "include" and "notInclude". 2015-02-24 21:52:31 -08:00
Mitar
5a0a0bc061 Provide notInclude in Tinytest. 2015-02-24 21:52:31 -08:00
Mitar
d0ddf5cd9b Unifying tinytest fields. 2015-02-24 13:57:20 -08:00
Rick Golden
b7b9a53038 fix typo (use of & vs. &&) 2014-09-29 14:21:55 -07:00
David Glasser
ba9ec26b97 constraint solver errors: ignore unibuilds
Most people think of package deps in terms of packages, not unibuilds,
but our constraint solver has all these generated "if you're using
foo#os@1.0.0, use foo#web.browser@=1.0.0" constraints. They are just
distracting in errors (which already hide the unibuild part for
clarity) so make sure we don't see them in paths either.

(I could imagine a flag/env var that skips all the removeUnibuild calls
and this special processing, for "gory details" mode.)
2014-09-12 12:27:52 -07:00
David Greenspan
8e93519f5c Make test-in-browser show current client test 2014-07-15 17:10:46 -07:00
Andrew Wilcox
482d9a78d7 Fix serializing server tests.
`Tinytest.add` is now implemented in terms of `Tinytest.addAsync`, and
the old `async` flag removed.
2014-04-30 23:32:24 -07:00
Andrew Wilcox
853aa3f1d5 Run server tests one at a time. 2014-04-30 23:32:24 -07:00
Dan Dascalescu
64e02f2f56 Pass failure message for test.length() 2014-04-29 16:49:48 -07:00
David Glasser
41b5b95b38 testAsyncMulti: Include block index in failures 2014-04-24 14:01:34 -07:00
Andrew Wilcox
d365f052f5 Encrypt account service configuration and OAuth secrets stored in the
database.

"Oauth" is renamed to "OAuth".  "Oauth" is kept as an alias for
backwards compatibility.

README.md contains a sample description of how to generate and use the
oauthSecretKey, which might be incorporated into the wiki
documentation page.
2014-04-08 18:57:58 -04:00
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