Fix inconsistent names of languages #972
report-viewer-unit.yml
on: pull_request
pre_job
5s
test
18s
Annotations
3 errors
tests/unit/model/factories/OptionsFactory.test.ts > Test JSON to Options > Test Valid JSON:
report-viewer/tests/unit/model/factories/OptionsFactory.test.ts#L30
AssertionError: expected { …(13) } to deeply equal { language: 'Java', …(12) }
- Expected
+ Received
Object {
"baseDirectory": ".",
"clusterOptions": Object {
"agglomerativeThreshold": 0.2,
"algorithm": "Spectral",
"enabled": true,
"interClusterSimilarity": "Average",
"preprocessor": "Cumulative Distribution Function",
"preprocessorPercentile": 0.5,
"preprocessorThreshold": 0.2,
"similarityMetric": "AVG",
"spectralBandwidth": 20,
"spectralGaussianProcessVariance": 0.0025000000000000005,
"spectralMaxKMeansIterations": 200,
"spectralMaxRuns": 50,
"spectralMinRuns": 5,
},
"exclusionFileName": "ex.txt",
"fileSuffixes": Array [
".java",
".JAVA",
],
- "language": "Java",
+ "language": "Javac based AST plugin",
"maxNumberComparisons": 500,
"mergingOptions": Object {
"enabled": false,
"maxGapSize": 0,
"minNeighborLength": 0,
},
"minTokenMatch": 9,
"oldDirectories": Array [
"old",
],
"similarityMetric": "AVG",
"similarityThreshold": 0,
"subDirectoryName": "src/",
"submissionDirectories": Array [
".\\files",
],
}
❯ tests/unit/model/factories/OptionsFactory.test.ts:30:20
|
tests/unit/model/factories/OverviewFactory.test.ts > Test JSON to Overview > Post 5.0:
report-viewer/tests/unit/model/factories/OverviewFactory.test.ts#L41
AssertionError: expected Overview{ …(11) } to deeply equal { …(11) }
- Expected
+ Received
- Object {
+ Overview {
"_baseCodeFolderPath": "",
"_clusters": Array [
Object {
"averageSimilarity": 94.746956,
"members": Array [
"C",
"A",
"B",
"D",
],
"strength": 0,
},
],
"_dateOfExecution": "12/07/23",
"_distributions": Object {
"AVG": Distribution {
"_distribution": Array [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
],
},
"MAX": Distribution {
"_distribution": Array [
1,
0,
2,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
],
},
},
"_durationOfExecution": 12,
"_fileExtensions": Array [
".java",
".JAVA",
],
- "_language": "Javac based AST plugin",
+ "_language": "unknown language",
"_matchSensitivity": 9,
"_submissionFolderPath": Array [
"files",
],
"_topComparisons": Array [
Object {
"clusterIndex": 0,
"firstSubmissionId": "A",
"id": 1,
"secondSubmissionId": "C",
"similarities": Object {
"AVG": 0.9960435212660732,
"MAX": 0.9960435212660732,
},
"sortingPlace": 0,
},
Object {
"clusterIndex": 0,
"firstSubmissionId": "D",
"id": 2,
"secondSubmissionId": "A",
"similarities": Object {
"AVG": 0.751044776119403,
"MAX": 0.947289156626506,
},
"sortingPlace": 1,
},
Object {
"clusterInde
|
test
Process completed with exit code 1.
|