Project

General

Profile

Task #650

Create a common directory for unit testing utilities

Added by Teemu Murtola over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
testing
Target version:
Difficulty:
uncategorized
Close

Description

It would be useful to have something like src/testutils/ for common code that is needed in unit tests of several modules. It could contain, for example, main() functions for unit tests that use Google Test and/or Google Mock to do common setup for these frameworks. It could also contain code needed to, e.g., load test data from the disk. Currently, such code needs to be duplicated in all modules. Having it in one place would make test development/maintenance faster and easier.

Is src/testutils/ a good location for this?

Associated revisions

Revision 00fd83ab (diff)
Added by Teemu Murtola over 9 years ago

Added common unit testing utilities.

Currently, only main() functions for GTest and GMock tests are included,
and basic functionality for finding the location of test data files.

IssueID #650

History

#1 Updated by Teemu Murtola over 9 years ago

  • Status changed from New to In Progress
  • Assignee set to Teemu Murtola

Will put these under the proposed location if there are no other comments.

#2 Updated by Mark Abraham over 9 years ago

Teemu Murtola wrote:

Is src/testutils/ a good location for this?

Seems fine to me.

#3 Updated by Teemu Murtola over 9 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Basic functionality is now there; additional functions can be added when the need arises.

#4 Updated by Teemu Murtola over 6 years ago

  • Project changed from Source code reorganization to GROMACS
  • Category set to testing
  • Target version set to 5.0

Also available in: Atom PDF