Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-1073

Reorganize unit-tests

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.6
    • Component/s: None
    • Labels:
      None

      Description

      • move tests in a folder underneath origin "tvb"
      • add a simple entry point, something like: tvb.test.run_all()
        • done with pytest discovery and syntax
      • research how difficult would be to have our tests compatible with NOSE
        • done with pytest
      • try to set by default TEST_SQLITE_PROFILE when in tests, and not DEVELOPMENT_PROFILE
        • done, but not ideal: import of BaseTestCase needs to come first (before any other tvb import), as it sets the correct test profile
      • try to remove manual "suite" tests gathering, and use some automatic test discovery
        • some tests are needed to remain IGNORED (e.g. prefix stand_alone)
      • try to speed-up tests (e.g. remove reset_database calls in Burst/FlowControllerTests)
        • left for another story
      • review init_test_env is default_mlab_exe needed

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dan.pop Dan Pop
                Reporter:
                lia.domide Lia Domide
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 weeks Original Estimate - 2 weeks
                  2w
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 weeks, 1 day, 6 hours
                  3w 1d 6h