|
@@ -234,12 +234,12 @@ class Metadata:
|
|
|
|
|
|
return tests
|
|
|
|
|
|
- def list_test_metadata(self):
|
|
|
+ def to_jsonable(self):
|
|
|
'''
|
|
|
- Prints the metadata for all the available tests
|
|
|
+ Returns an array suitable for jsonification
|
|
|
'''
|
|
|
all_tests = self.gather_tests()
|
|
|
- all_tests_json = json.dumps(map(lambda test: {
|
|
|
+ return map(lambda test: {
|
|
|
"project_name": test.project_name,
|
|
|
"name": test.name,
|
|
|
"approach": test.approach,
|
|
@@ -256,7 +256,13 @@ class Metadata:
|
|
|
"notes": test.notes,
|
|
|
"versus": test.versus,
|
|
|
"tags": hasattr(test, "tags") and test.tags or []
|
|
|
- }, all_tests))
|
|
|
+ }, all_tests)
|
|
|
+
|
|
|
+ def list_test_metadata(self):
|
|
|
+ '''
|
|
|
+ Prints the metadata for all the available tests
|
|
|
+ '''
|
|
|
+ all_tests_json = json.dumps(self.to_jsonable())
|
|
|
|
|
|
with open(
|
|
|
os.path.join(self.benchmarker.results.directory,
|