Skip to content

Add test suite for Meteor methods and some other server-side code.#338

Open
Torgen wants to merge 4 commits into
cjb:masterfrom
Torgen:travis
Open

Add test suite for Meteor methods and some other server-side code.#338
Torgen wants to merge 4 commits into
cjb:masterfrom
Torgen:travis

Conversation

@Torgen
Copy link
Copy Markdown
Contributor

@Torgen Torgen commented Aug 12, 2018

Some refactoring was necessary because eager loading isn't done in test mode, and some code we didn't want to run during tests was intermingled with code we did. Also, now the client won't download the batch processing code it will never use.
Fixes #161 unless you want some client-side testing, though that can always be added later.
Someone will have to enable Travis for the project for the badge to work, though you will still be able to run tests manually without that.

@Torgen
Copy link
Copy Markdown
Contributor Author

Torgen commented Aug 12, 2018

I didn't add tests for the bot commands because it turns out Hubot expects bot callbacks to be synchronous, and ours are coroutines, so you can't use the receive callback to detect when they're done like you're supposed to be able to.

@Torgen
Copy link
Copy Markdown
Contributor Author

Torgen commented Aug 14, 2018

This also makes some progress on #314 by splitting the server startup and batch code out of lib/model.coffee, though it does still contain both the collections and the methods.

Torgen added a commit to Torgen/codex-blackboard that referenced this pull request Oct 6, 2018
Will address cjb#337, but as written depends on Meteor native account support, which I don't have a PR for yet but will probably create one for once cjb#338 is merged.
@Torgen
Copy link
Copy Markdown
Contributor Author

Torgen commented Dec 10, 2018

If you pull #310 first, wait to pull this until I add back the tests for setStarred. If you pull this first, wait to pull that for the same.

Rather than by who the message is to.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant