Spaces:
Runtime error
Runtime error
File size: 6,571 Bytes
5fc6e5d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# Turing Test Execution Report
---
## Environment Information
| Parameter | Value |
|:---------------|:---------------------------|
| Timestamp | 2025-12-04 18:14:18 |
| Context | TURING |
| Python Version | 3.12.12 |
| Platform | macOS-15.6-arm64-arm-64bit |
| Architecture | arm64 |
---
## Executive Summary
**Overall Status:** MOSTLY PASSED
**Success Rate:** 91.2%
| Metric | Count |
|:-------------|--------:|
| Total Tests | 34 |
| Passed | 31 |
| Failed | 3 |
| Success Rate | 91.2% |
**Visual Progress:**
```
Progress: [ββββββββββββββββββββββββββββββββββββββββββββββββββ] 91.2%
Passed: 31/34 tests
```
---
## UNIT Tests
### Statistics
| Status | Count |
|:---------|-----------:|
| Total | 34 |
| Passed | 31 (91.2%) |
| Failed | 3 (8.8%) |
### Test Results
| Module | Test Case | Result | Time | Message |
|:----------------|:---------------------------------------------------|:---------|:-------|:-----------------------------------------------------|
| test_api.py | test_health_check_returns_ok | PASS | 0.01s | |
| test_api.py | test_predict_success_java | PASS | 0.02s | |
| test_api.py | test_predict_success_python | PASS | 0.00s | |
| test_api.py | test_predict_success_pharo | PASS | 0.00s | |
| test_api.py | test_predict_missing_texts | PASS | 0.00s | |
| test_api.py | test_predict_missing_language | PASS | 0.00s | |
| test_api.py | test_predict_empty_texts | PASS | 0.00s | |
| test_api.py | test_predict_error_handling | PASS | 0.00s | |
| test_api.py | test_predict_invalid_language | PASS | 0.00s | |
| test_api.py | test_prediction_request_valid | PASS | 0.00s | |
| test_api.py | test_prediction_response_valid | PASS | 0.00s | |
| test_config.py | test_proj_root_is_correctly_identified | PASS | 0.00s | |
| test_config.py | test_directory_paths_are_correctly_structured | PASS | 0.00s | |
| test_config.py | test_dataset_constants_are_valid | PASS | 0.00s | |
| test_config.py | test_labels_map_and_total_categories_are_correct | PASS | 0.00s | |
| test_config.py | test_numeric_parameters_are_positive | PASS | 0.00s | |
| test_config.py | test_load_dotenv_is_called_on_module_load | PASS | 0.00s | |
| test_dataset.py | test_initialization_paths_are_correct | FAIL | 0.00s | turing/tests/unit/test_dataset.py:25: AssertionError |
| test_dataset.py | test_format_labels_for_csv[input_labels0-[1, 0,... | PASS | 0.00s | |
| test_dataset.py | test_format_labels_for_csv[[1, 0, 1]-[1, 0, 1]] | PASS | 0.00s | |
| test_dataset.py | test_format_labels_for_csv[input_labels2-[]] | PASS | 0.00s | |
| test_dataset.py | test_format_labels_for_csv[None-None] | PASS | 0.00s | |
| test_dataset.py | test_get_dataset_raises_file_not_found | PASS | 0.00s | |
| test_dataset.py | test_get_dataset_success_and_label_parsing | FAIL | 0.00s | turing/dataset.py:128: FileNotFoundError |
| test_model.py | test_model_initialization[randomForestTfIdf] | PASS | 0.00s | |
| test_model.py | test_model_initialization[codeBerta] | PASS | 0.00s | |
| test_model.py | test_model_setup[randomForestTfIdf] | PASS | 0.00s | |
| test_model.py | test_model_setup[codeBerta] | PASS | 0.93s | |
| test_model.py | test_model_train[randomForestTfIdf] | PASS | 2.66s | |
| test_model.py | test_model_train[codeBerta] | PASS | 7.22s | |
| test_model.py | test_model_evaluate[randomForestTfIdf] | PASS | 1.31s | |
| test_model.py | test_model_evaluate[codeBerta] | FAIL | 8.83s | turing/tests/unit/test_model.py:101: AssertionError |
| test_model.py | test_model_predict[randomForestTfIdf] | PASS | 1.21s | |
| test_model.py | test_model_predict[codeBerta] | PASS | 5.98s | |
---
> **ERROR**: 3 test(s) failed. Please review the error messages above.
---
*Report generated on 2025-12-04 at 18:14:18*
*Powered by Turing Test Suite*
|