-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: option to disable ANSI color codes #1520
Copy link
Copy link
Closed
Labels
EnhancementNew feature or requestNew feature or requestGSoCIssues up for GSoCIssues up for GSoCGoPull requests that update Go codePull requests that update Go codeGood First IssueGood for newcomersGood for newcomerskeploy
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
Currently when we are logging to places where ANSI color codes are not supported eg: piping to a file - the output is not readable. We use ANSI color codes to show colors in terminals, but they are not supported in log files and CI.
We should provide an option to disable ANSI color codes.
Steps to reproduce
- Record tests for any application with keploy.
- run testmode by pipping to a file. eg:
keploy test -c "some app command" &> log.txt - You will see random charaters appened instead of colors.
eg:
TESTRUN SUMMARY. For testrun with id: �[31m�[1m"�[0m�[31mtest-set-0�[0m�[31m�[1m"�[0m
Total tests: �[34m�[1m79�[0m
Total test passed: �[34m�[1m66�[0m
Total test failed: �[34m�[1m13�[0m
```
### Environment
None
### Version
Cloud
### Repository
keploy
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EnhancementNew feature or requestNew feature or requestGSoCIssues up for GSoCIssues up for GSoCGoPull requests that update Go codePull requests that update Go codeGood First IssueGood for newcomersGood for newcomerskeploy