Skip to content

Add Unit testing #47

Closed
proost opened this issue Dec 29, 2015 · 3 comments
Closed

Add Unit testing #47

proost opened this issue Dec 29, 2015 · 3 comments

Comments

@proost
Copy link
Owner

proost commented Dec 29, 2015

setUp(): create new temp database and add one sequence with some GO, InterPro ... data

test_sequence: runs controllers and checks if the footer is in the output (which indicates the html output is correctly rendered !)

teardown(): remove database again

Note, testing profiles and networks is considerable more difficult !!

@proost proost self-assigned this Dec 30, 2015
@proost
Copy link
Owner Author

proost commented Dec 30, 2015

Currently included, however, the database should exist and contain at least one record of each !

  • Sequence
  • Species
  • Interpro
  • Family
  • GO

@proost
Copy link
Owner Author

proost commented Jan 4, 2016

App now has app-factory pattern which allows the unit testing to be done using a separate configuration starting with an empty database. This works, so now this needs to be expanded to include all routes

@proost
Copy link
Owner Author

proost commented Jan 5, 2016

Unit tests implemented for ALL (!) routes. Takes ~ 30 seconds to run on dummy data, not bad

@proost proost closed this as completed Jan 5, 2016
Sign in to join this conversation on GitHub.
Projects
None yet
Development

No branches or pull requests

1 participant