mongodb / specifications

Specifications related to MongoDB
http://specifications.readthedocs.io/en/latest
Other
389 stars 242 forks source link

Regenerate templated spec test files in Travis #655

Closed ShaneHarvey closed 1 year ago

ShaneHarvey commented 5 years ago

Various spec tests are generated via scripts. We should integrate these scripts with Travis to validate that the template files have been updated correctly.

Examples:

ShaneHarvey commented 4 years ago

Note: I did this for the SDAM tests added in https://github.com/mongodb/specifications/commit/371e95b18f4783d485218bb1565970be10568e8a:

     - name: "JSON regeneration check"
-      dist: trusty
-      language: node_js
-      node_js:
-        - 12
+      dist: xenial
+      language: python
+      python:
+        - 3.7
       install:
         - npm install -g js-yaml
       script:
+        - python3 ./source/server-discovery-and-monitoring/tests/errors/generate-error-tests.py
         - cd source && make && git diff --exit-code

We should still do the same for the transactions and encryption tests.

blink1073 commented 1 year ago

This is done: https://github.com/mongodb/specifications/blob/3c7d132907d6f485f3abfbfa77103aaceceb94f6/.github/workflows/json-regenerate-check.yml