Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored tests to run using meteortesting:mocha #269

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npm/package/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
7 changes: 7 additions & 0 deletions .npm/package/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This directory and the files immediately inside it are automatically generated
when you change this package's NPM dependencies. Commit the files in this
directory (npm-shrinkwrap.json, .gitignore, and this README) to source control
so that others run the same versions of sub-dependencies.

You should NOT check in the node_modules directory that Meteor automatically
creates; if you are using git, the .gitignore file tells git to ignore it.
40 changes: 40 additions & 0 deletions .npm/package/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ To add to your project, run:

The package exposes a global object `JobCollection` on both client and server.

To run tests (using Meteor tiny-test) run from within the `job-collection` subdirectory:
To run tests (using Meteor `meteortesting:mocha`) run from within the `job-collection` subdirectory:

meteor test-packages ./
meteor test-packages ./ --driver-package meteortesting:mocha

Load `http://localhost:3000/` and the tests should run in your browser and on the server.
Load `http://localhost:3000/` to run the client-tests in the browser or follow the instructions on https://github.com/meteortesting/meteor-mocha#run-client-tests-headless.

A basic sample application that implements a basic image gallery with upload/download support and
automatic generation of thumbnail images is available. It also implements a basic job manager UI
Expand Down
8 changes: 6 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ Package.onTest(function (api) {
api.use('mrt:[email protected]', ['server','client']);
api.use('[email protected]_1', ['server','client']);
api.use('[email protected]', ['server','client']);
api.use('[email protected]', ['server','client']);
api.use('[email protected]', ['server','client']);
api.use('meteortesting:[email protected]', ['server','client']);
api.use('[email protected]', 'client');

Npm.depends({
chai: '4.1.2',
});

api.addFiles('test/job_collection_tests.coffee', ['server', 'client']);
});
Loading