meteor test-packages
Runs unit tests for one or more packages. The results are shown in a browser dashboard that updates whenever a relevant source file is modified
Options
Name | Description |
---|---|
--release <release> | Specify the release of Meteor to use |
--port, -p <port> | Port to listen on (instead of the default 3000). Also uses port N+1 and N+2 |
--inspect [port] | Enable server-side debugging via debugging clients like the Node.js command-line debugger, Chrome DevTools, or Visual Studio Code |
--inspect-brk [port] | Enable server-side debugging via debugging clients like the Node.js command-line debugger, Chrome DevTools, or Visual Studio Code. The server will be paused at startup, waiting for clients to attach to the process on the specified port |
--mobile-server | Location where mobile builds connect to the Meteor server. Defaults to your local IP and the port that the Meteor server binds to. Can include a URL scheme (for example, --mobile-server https://example.com:443) |
--cordova-server-port <port> | Local port where Cordova will serve the content. It's important when multiple Cordova apps are build from the same Meteor app source code as by default the port is generated using the id inside .meteor/.id file |
--production | Simulate production mode. Minify and bundle CSS and JS files |
--settings, -s <JSON File> | Set optional data for Meteor.settings on the server |
--ios | Run tests in an iOS emulator. All of the tests for client and server will run in addition to mobile-specific tests |
--android | Run tests in an Android emulator. All of the tests for client and server will run in addition to mobile-specific tests |
--ios-device | Run tests on iOS mobile device. All of the tests for client and server will run in addition to mobile-specific tests |
--android-device | Run tests on Android emulator or on a mobile device. All of the tests for client and server will run in addition to mobile-specific tests |
--test-app-path [path] | Set the directory in which to create a temporary app used for tests. Defaults to the system's temporary directory, usually /tmp |
--verbose | Print all output from builds logs |
--no-lint | Don't run linters used by the app on every rebuild |
--extra-packages <packages> | Run with additional packages (comma separated, for example: --extra-packages "package-name1, package-name2@1.2.3") |
--driver-package <driver-package> | Test driver package to use to run tests and display results. For example: --driver-package meteortesting:mocha |
package | Package name |