Skip to content

Commit

Permalink
feat: changed character at metrics.
Browse files Browse the repository at this point in the history
Co-Authored-by: Ana Carolina Rodrigues <[email protected]>
  • Loading branch information
ArielSixwings and AnaCarolinaRodriguesLeite committed Nov 4, 2023
1 parent ce8933f commit 20ae9bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cli/commands/cmd_print_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def print_json_tree(data):
result.append(f"[#FFFFFF]{indent}{indent}│ Métrica(s):") # Use the ASCII character │ (code 179)
metrics = measure_to_metric.get(measure_key, []) # Get associated metrics
for metric in metrics:
result.append(f"[#FFFFFF]{indent}{indent}[#00FF00]{metric}") # Print metrics in green color
result.append(f"[#FFFFFF]{indent}{indent}└─[#00FF00]{metric}") # Print metrics in green color
result.append(f"[#FFFFFF]{indent}{indent}│ │ Valores de referência: Min = [#00FF00]{min_threshold} [#FFFFFF]e Max = [#00FF00]{max_threshold}")
result.append(f"[#FFFFFF]{indent}{indent}│ Fim-Métrica(s)")
result.append(f"[#FFFFFF]{indent}│ Fim-Medida(s)")
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/data/expected_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ Sub-característica(s):
│ │ │ passed_tests
│ │ │ Peso: 33%
│ │ │ Métrica(s):
│ │ │ test_success_density
│ │ │ └─test_success_density
│ │ │ │ Valores de referência: Min = 0 e Max = 1
│ │ │ Fim-Métrica(s)
│ │ Fim-Medida(s)
│ │ Medida(s):
│ │ │ test_builds
│ │ │ Peso: 33%
│ │ │ Métrica(s):
│ │ │ tests
│ │ │ tests_execution_time
│ │ │ └─tests
│ │ │ └─tests_execution_time
│ │ │ │ Valores de referência: Min = 0 e Max = 300000
│ │ │ Fim-Métrica(s)
│ │ Fim-Medida(s)
│ │ Medida(s):
│ │ │ test_coverage
│ │ │ Peso: 34%
│ │ │ Métrica(s):
│ │ │ coverage
│ │ │ └─coverage
│ │ │ │ Valores de referência: Min = 60 e Max = 100
│ │ │ Fim-Métrica(s)
│ │ Fim-Medida(s)
Expand Down

0 comments on commit 20ae9bc

Please sign in to comment.