Commit Graph

46 Commits

Author SHA1 Message Date
Denilson
aece11a87f Revert "Revert "Refactoring/Remove unused imports from tools folder"" 2022-07-13 08:37:42 -04:00
Denilson
f8114747cd Revert "Refactoring/Remove unused imports from tools folder" 2022-07-13 08:33:07 -04:00
afrokick
094cb6b322 remove unused imports from tools 2022-07-06 19:27:53 +03:00
Jan Küster
b30207bbe0 tools test list command added simple tests for tree and json mode
We want at least test, that there is a minimal integrity with these
commands when running the arguments parsing tests.
2020-10-17 15:09:29 +02:00
Paulo Mogollón
2ae2690f3a Convert tools/utils/archinfo.js to TypeScript. (#10624)
* Updated code to use modern JS
* Added types
* Stopped using 2 underscore functions (1 remaining)
2019-07-21 12:01:24 -04:00
Ben Newman
5ed64fb1db Remove explicit .js extension from tools/fs/files imports. 2019-07-04 10:32:09 -04:00
Hugh Willson
540dc00230 Add a self-test skip option (#9579)
* Add a self-test skip option

Meteor's CI infrastructure is configured to exclude certain
`self-test`'s on each run. These excludes are specified in
each CI environment's config file, and included when running
`meteor self-test`. Developers running `meteor self-test`
locally however are not using these excludes by default,
so developer's have to manually look up the current exclude
list from one of the CI configs, then add these excludes to
their own `meteor self-test` call manually.

This commit adds a new `skip` option to Meteor's `self-test`
system, that can be used to skip adding/running a defined
`self-test` (similar in concept to Mocha's `skip` feature).
This provides a way to skip the running of older
`self-test`'s that are no longer needed, but allows them to
be preserved in the `self-test` suite, for future reference.
With this functionality in place, and the older test suites
updated to use it, Meteor's base CI excludes no longer need
to be maintained in their respective config files. The
excludes are all managed at the source (the test definition),
and can be leveraged by anyone/anything calling
`meteor self-test`.

* Log message describing skipped test

* Add manually-ignored count to self-test summary

* Small comment correction

* History.md entry with PR link
2018-01-29 14:25:09 +02:00
Geoffrey Booth
318d93ec0f See if the noop test driver can work here too 2017-10-31 14:00:56 -07:00
Geoffrey Booth
fbf1e9ee43 Try different Mocha test driver 2017-10-31 14:00:56 -07:00
Ben Newman
0b9ea6e2c5 Merge branch 'release-1.5.2' into release-1.6 2017-08-11 15:52:26 -04:00
Ben Newman
0e723593a6 Merge branch 'devel' into release-1.5.2 2017-08-11 15:23:39 -04:00
Jesse Rosenberger
5c011253f7 Change "expected" for meteor list command-line test.
This test doesn't actually run normally, as it's quite slow, but
started failing with the changes to #8936.  This fixes that!
2017-08-11 21:17:41 +03:00
Ben Newman
1b636ebf04 Merge branch 'release-1.5.2' into release-1.6 2017-07-21 19:52:47 -04:00
Ben Newman
2129c33200 Merge branch 'devel' into release-1.5.2 2017-07-21 18:37:37 -04:00
Seba Kerckhof
b52c6587d7 Handle regular expressions in EJSON (#8821)
* Handle regular expressions in EJSON

* Adjust "checkout" self-test wait time to fix failing self-test's.

* Adjusting self-test "checkout" timeout further.

* Self-test exit timeout adjustments for the CLI "argument parsing" tests.
2017-07-21 13:45:38 -04:00
Hugh Willson
01378df2a0 Adjust test-packages --test-app-path to create the directory if missing (#8923)
* Adjust test-packages --test-app-path to create the directory if missing.

* Slight style tweak.
2017-07-20 10:21:56 -04:00
Ben Newman
12753cb916 Additional timeouts for Meteor 1.6 failing tests.
Note that eee519ad58 greatly reduced the
TIMEOUT_SCALE_FACTOR for Circle CI tests, which likely caused some tests
to time out more often, so these additional timeouts are really just a way
of re-bumping individual timeouts, which arguably leaves the test suite in
a better overall state of health.
2017-07-11 12:07:46 -04:00
Michał Powaga
7239bf5ec2 Add --extra-packages option to test and test-packages commands 2017-06-08 23:26:47 +01:00
Michał Powaga
4c236dd69e --extra-packages now overrides .meteor/packages constraints 2017-06-08 16:21:09 +01:00
Michał Powaga
a276af1706 Add selftest 2017-06-08 10:56:56 +01:00
Martijn Walraven
d54d681697 Make some more self tests pass 2016-03-17 21:20:12 +01: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
Sashko Stubailo
94ed0dac1a Fix bundle test 2015-09-02 11:21:14 -07:00
Slava Kim
39d8aef3d9 move files into console/ tool-testing/ 2015-08-06 16:39:00 -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
08005bfe0a move runners into folder 'runners' 2015-08-01 13:01:49 -07:00
Slava Kim
56e1e08292 Rewrite part of the old/cli-test.sh test to selftest 2015-03-30 16:35:32 -07:00
sashko
c914dc94cf Fix command line test by adding small wait 2015-03-05 19:47:11 -08:00
Sashko Stubailo
5c5af8bdff Uncomment empty string argument tests
Add an if statement so that they don't fail on Windows
2015-03-05 18:45:27 -08:00
Sashko Stubailo
9ef49c60dc Comment out empty string arg tests
These don't work on Windows because of a Node bug that is fixed in a
newer release. These tests aren't super necessary anyway, so it's
better to comment the empty string ones to let the real ones run
2015-02-10 12:28:25 -08:00
David Glasser
074087be8a meteor login --email was supposed to be boolean!
See #3532.

We honestly should probably just drop the option and allow you to type
either a username or a password, just like in accounts-ui.

Because options have to be consistently bool or not across commands (so
that you can put them before the command name), change the testing-only
dummy command's string option to a different nonsense name.
2015-01-27 14:17:41 -08:00
Justin SB
78b7896ea5 Update match for new deprecation warning on meteor bundle 2014-10-17 12:49:49 -07:00
Emily Stark
8b86948d41 Fix argument parsing test; default port is now a string 2014-10-08 11:50:21 -07:00
Matthew Arbesfeld
b78bca197e Fix command line test 2014-08-20 21:19:50 -07:00
David Glasser
2e5adc2659 fix autoupdate test
also fixes a bunch of other stuff like:

- parseStack markTop works again (so you get the right line numbers in
  self-test)

- you can (with appropriate env var) run apps with NO PACKAGES at
  all (even ctl)

- more consistently refer to METEOR-CORE@ releases as "Meteor 1.2.3"
2014-06-17 14:26:29 -07:00
ekatek
3b16031844 pass some more tests 2014-06-13 17:39:36 -07:00
Emily Stark
b04aa12d39 Make 'empty' a test app with no packages.
Rename previous 'empty' app to 'standard-app'.
2014-02-14 17:59:59 -08:00
David Glasser
afdce8cccd support '=' in command-line arguments 2014-02-05 15:52:05 -08:00
David Glasser
65addc22d6 support short string arguments
change how splice is called to be sort of better
2014-02-05 15:52:05 -08:00
David Glasser
9ea312c100 explicit test that empty arguments work 2014-02-05 15:52:05 -08:00
David Glasser
d218256a13 support '-' as an argument 2014-02-05 15:52:05 -08:00
David Glasser
f36dc758b8 add "scoped" Sandbox.cd to tests
I honestly have found it difficult in the old cli-test.sh to figure out
which tests were inside which directories and wanted something like
this there.
2014-02-03 10:27:08 -08:00
David Glasser
736cac2e42 Fix stack trace on 'asdf --version', etc 2014-01-30 11:30:55 -08:00
Geoff Schmidt
fd5073888a Rename 'self tests' directory to 'tests' 2014-01-28 16:00:46 -08:00