I have a big json file with list of tests. Json file contains several filenames, which contains names of test classes, which have some setup stuff and a list of tests. Here is an example of such json file:
{
"filename1.py": {
"ClassName": [
"setupSection": [
here will be list of sqls which should be performed before tests
],
"listOfTests": {
"test1Name": [
{ here will be query }, {here will be expected result}
],
"test1Name": [
{ here will be query }, {here will be expected result}
]
}
},
"filename2.py": {
"ClassName": [
"setupSection": [
here will be list of sqls which should be performed before tests
],
"listOfTests": {
"test1Name": [
{ here will be query }, {here will be expected result}
],
"test1Name": [
{ here will be query }, {here will be expected result}
]
}
}
}
And I need somehow perform this tests with a few classes written in Java or Scala. So there should be 1-3 classes written in Java or/and Scala which will perform all tests from json file. Is it possible?