ParticipationSystems/Discourse/Development: Difference between revisions

add tests
(add tests)
 
Line 1: Line 1:
= Development =
== Setting up the development environment ==
== Setting up the development environment ==


Line 134: Line 132:


Edits can then be made in the <code>discourse-mozillians</code> directory, which are reflected in the <code>discourse/plugins/discourse-mozillians</code> directory, and then in the VM.
Edits can then be made in the <code>discourse-mozillians</code> directory, which are reflected in the <code>discourse/plugins/discourse-mozillians</code> directory, and then in the VM.
== Running tests ==
Discourse has an extensive series of tests to run your code against. If you just want to run one test (if you're writing it, for instance):
<pre>
[vagrant]$ RAILS_ENV=test bundle exec rake db:migrate
[vagrant]$ bundle exec rspec spec/jobs/pull_hotlinked_images_spec.rb
</pre>
Confirmed users
176

edits