Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2409

Separate generated test data from committed test data

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: All Tools
    • Labels:

      Some of the tools tests have generated test data that gets put into the source directory next to committed test data. See this [mongorestore example](https://github.com/mongodb/mongo-tools/blob/0660bca4bee742d34d34c8cdbf91f4bb6ee552ba/mongorestore/metadata_test.go#L195-L203).

      To prevent this data from being committed, there are aggressive .gitignore rules to avoid committing json, which causes other json files (such as in vendor directories or newly added test data) not to be committed.

      We should consider options to better segregate generated from committed data. E.g.:

      • Only generate test data into a system temporary directory
      • Always generate test data into `testdata/generated` and restrict the .gitignore rules to that directory

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: