securethenews icon indicating copy to clipboard operation
securethenews copied to clipboard

Tests

Open garrettr opened this issue 8 years ago • 3 comments

The goal of the initial development phase of Secure the News was to get something released as quickly as possible, and as a result we sadly neglected writing comprehensive tests for most of the code.

Inspired by Obey the Testing Goat, I'd like to write some or all of the following tests for Secure the News:

  • Functional tests for the whole site
  • Unit tests for our Django apps: blog, home, pledges, and sites
  • Unit tests for the frontend Javascript: client/src/javascript

garrettr avatar Feb 03 '17 18:02 garrettr

@garrettr I'd like to develop the unit testing suite for the Django apps. I can work on a prototype over the weekend.

kshitij10496 avatar Nov 09 '17 18:11 kshitij10496

@kshitij10496 More app tests would be great! Add them to the app folders in typical Django fashion, and CI will run them automatically via ./manage.py test --noinput --keepdb in the Molecule "CI" scenario.

conorsch avatar Nov 09 '17 21:11 conorsch

Thanks @conorsch for the advice. I will open up a PR with some tests for review.

kshitij10496 avatar Nov 11 '17 11:11 kshitij10496