testsuite icon indicating copy to clipboard operation
testsuite copied to clipboard

[BUG] Individual tests are not adding total points in the results file, only in the items for the test

Open agentpoyo opened this issue 3 years ago • 3 comments

Describe the bug Despite just a single test being run and it providing the points awarded in the results file under the test name, the total points are not added to the top of the results file like they are during category or workload runs.

To Reproduce Steps to reproduce the behavior:

  1. Setup CNF with k8s
  2. Run a single test
  3. View the results file generated.
  4. You'll see no total points at the top of the results file.

Expected behavior Either the total points should be added or since these are single test results, remove the total points (or do away with producing a results file altogether for individual tests) in the header of the yml log as it's irrelevant to have redundant points: in the results file.

Screenshots

root@cnf-testsuite-test1:~/cnf-testsuite# ./cnf-testsuite single_process_type                                                                                                                                                     
✔️  PASSED: Only one process type used 🐜 ⚖️👀                                                                                                                                                                                      
root@cnf-testsuite-test1:~/cnf-testsuite# cat results/cnf-testsuite-results-20220408-125103-544.yml                                                                                                                               
---                                                                                                                                                                                                                               
name: cnf testsuite                                                                                                                                                                                                               
status:                                                                                                                                                                                                                           
points:                                                                                                                                                                                                                           
exit_code: 0                                                                                                                                                                                                                      
items:                                                                                                                                                                                                                            
- name: single_process_type                                                                                                                                                                                                       
  status: passed                                                                                                                                                                                                                  
  points: 5 

agentpoyo avatar Apr 08 '22 12:04 agentpoyo

Should we generate results files for individual tests? Only groups of tests (like workload, microservice, all, platform) is what I would assume require results files.

HashNuke avatar Apr 08 '22 13:04 HashNuke

Should we generate results files for individual tests? Only groups of tests (like workload, microservice, all, platform) is what I would assume require results files.

I updated the behavior to indicate possibly just do away with individual tests results files, seems rather pointless to be honest.

agentpoyo avatar Apr 08 '22 13:04 agentpoyo

@HashNuke @agentpoyo is still issue still relevant?

lixuna avatar Feb 21 '24 18:02 lixuna