From 4634e37fe57fba5b3b6b3e953b5826b7bbf499d5 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Fri, 24 Feb 2017 10:28:29 +1100 Subject: [PATCH] document test runner --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0ec5804..c0a4414 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,11 @@ STRIPE_PUBLISHABLE_KEY: 'my_publishable_key' ## Testing -To run the specs, install the plugin and run `bundle exec rake plugin:spec[discourse-payments]` in the discourse root directory. +To run the rails specs, install the plugin and run `bundle exec rake plugin:spec[discourse-payments]` in the discourse root directory. -If you're using a zsh shell, then you probably get this error: `zsh: no matches found ...` and you'll need to escape the square brackets with backslashes. +To run qunit tests: `MODULE='Acceptance: Discourse Payments' rake qunit:test[20000]`. -Run the local js acceptance tests here: +**Note:** -http://localhost:3000/qunit?module=Acceptance%3A%20Discourse%20Payments +* [This fix](https://github.com/discourse/discourse/pull/4719) is required to run qunit test modules. +* If you're using a zsh shell, then you probably get this error: `zsh: no matches found ...` and you'll need to escape the square brackets with backslashes.