console in better format
argenx-pmason opened this issue · 4 comments
If I am running a test from the cli and want to capture the console output I use this
sasjs test > console_from_test.txt
which is fine, but the characters used to make the table seem to all be composed of 3 characters and I have to do a lot of replace operations to make it look nice.
Can we have an option to make simple tables with normal characters?
i No target was specified. Falling back to default target 'local' from your global .sasjsrc file.
i Test URL: http://localhost:5000/SASjsApi/stp/execute/?_program=/Public/app/local/tests/jobs/myjobs/test_macro.test&_debug=2477
i Log file is located at C:\GitHub\sas_code_testing\sasjsresults\logs\jobs_myjobs_test_macro.test.log
i Test URL: http://localhost:5000/SASjsApi/stp/execute/?_program=/Public/app/local/tests/macros/dsattr.test&_debug=2477
i Log file is located at C:\GitHub\sas_code_testing\sasjsresults\logs\macros_dsattr.test.log
i Test URL: http://localhost:5000/SASjsApi/stp/execute/?_program=/Public/app/local/tests/macros/sample1.test&_debug=2477
i Log file is located at C:\GitHub\sas_code_testing\sasjsresults\logs\macros_sample1.test.log
i Test URL: http://localhost:5000/SASjsApi/stp/execute/?_program=/Public/app/local/tests/macros/sample2.test.1&_debug=2477
i Log file is located at C:\GitHub\sas_code_testing\sasjsresults\logs\macros_sample2.test.1.log
i Test URL: http://localhost:5000/SASjsApi/stp/execute/?_program=/Public/app/local/tests/macros/sample2.test.2&_debug=2477
i Log file is located at C:\GitHub\sas_code_testing\sasjsresults\logs\macros_sample2.test.2.log
i Test URL: http://localhost:5000/SASjsApi/stp/execute/?_program=/Public/app/local/tests/macros/sample2.test.3&_debug=2477
i Log file is located at C:\GitHub\sas_code_testing\sasjsresults\logs\macros_sample2.test.3.log
ΓòöΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòù
Γòæ SASjs Test ID Γöé Test Target Γöé Test Suite Result Γòæ
ΓòƒΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓòó
Γòæ 8baeb34a-2d43-486d-8cc8-a62352fbd683 Γöé test_macro Γöé PASS Γòæ
ΓòƒΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓòó
Γòæ 1573383e-d941-428b-9f77-afac42c8ee1c Γöé dsattr Γöé PASS Γòæ
ΓòƒΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓòó
Γòæ 946baabb-8893-4564-a58a-1eb093b462ad Γöé sample1 Γöé PASS Γòæ
ΓòƒΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓòó
Γòæ c0c13f0c-b12c-42ba-86c5-b44956993631 Γöé sample2 Γöé PASS Γòæ
ΓòƒΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓòó
Γòæ 32ff153e-56a1-456a-8d75-53c175cd30a9 Γöé sample2 Γöé FAIL Γòæ
ΓòƒΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓòó
Γòæ 6fe07d0f-9616-4add-a08f-97d581bb822b Γöé sample2 Γöé FAIL Γòæ
ΓòÜΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓò¥
i Tests provided results: 6/6 (100%)
Tests that pass: 4/6 (67%)
√ Tests execution finished. The results are stored at:
C:\GitHub\sas_code_testing\sasjsresults\testResults.json
C:\GitHub\sas_code_testing\sasjsresults\testResults.csv
C:\GitHub\sas_code_testing\sasjsresults\testResults.xml
√ Tests coverage report:
C:\GitHub\sas_code_testing\sasjsresults\coverage.lcov
Rather than attempt to modify the default console output (which can differ among shells etc) we are going to put the additional information from the log (eg test results / result locations etc) into the JSON file
Such that the JSON file will contain all the information available, and can be used as an alternative to scraping the shell output.
🎉 This issue has been resolved in version 3.27.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
via Hubstaff
User: Sabir Hassan
Project: SASjs cli - https://app.hubstaff.com/projects/2310875
Date Range: 01/24/23 - 01/26/23
Work session total: 10:33:40
Billable: Yes
Grand total: 10:33:40