Comments (6)
typically, I think json is useful when there is a need for another system to analyze the data.
the primary use I'm concerned with is for CI. for that purpose, the most important things are:
Is there an ability to return exit code of 0 or non 0?
when the exit code is not 0, what data can be displayed to a human to assist with identifying the issue?
so, for this use, json structure does not provide additional value (since a human is using the data). therefore, whatever is easiest to develop is best.
at the same time, a json report might be beneficial to show metadata (number of tests, execution time)
the existing cli output is very nice. I think it helps for casual use (non CI) and provides the average postman user with a friendly output.
if we assume both outputs (cli and json) are useful, then we should ask: are they both useful simultaneously?
an implementation option is --format=(colorized, json)
perhaps we look at the newman usage of --report
and somewhat mimic that.
from strest.
Seems reasonable.
There's this to help: https://github.com/winstonjs/winston/blob/master/README.md
Are you thinking we just cut everything to logging and abandon the cli output?
from strest.
@jgroom33 I think the cli output should stay as it is because this quick response is a key factor in my opinion. We can just make the file output optional.
from strest.
I'm assuming logging could output to stdout and optionally a file. this might simplify the code. but, the fancy colorized output would no longer exist
from strest.
What is more attractive for professional usage? The more descriptive logging style as it is rn or just blank stdout logs?
from strest.
this feature will help when a vs code extension is developed. It will allow saving the previous executions and loading the saved result. I'm assuming the api is needed for this, but it might be possible without the api.
from strest.
Related Issues (20)
- View variable information when using the `-p` switch HOT 2
- Print output when call fails HOT 1
- Printout response when running repetitive calls
- Print response with Warning when ignore error is true HOT 2
- Iterate Calls without validation
- More MimeTypes HOT 1
- Validation Rules do not work for some special values (false, 0, null, ...) HOT 1
- [Feature Request] Install locally HOT 7
- Install fails because of jsonpath postinstall HOT 8
- Run requests asynchronously HOT 3
- nunjucks escapes & characters HOT 3
- add module export to allow other services to consume results of test runs
- command 'strest.request' not found HOT 1
- Allow for validating undefined / non-existent properties in responses HOT 2
- Improve the JSON output to hold validation results
- CodeClimate integration HOT 3
- Error: Unable to call `file` HOT 1
- How to use a cookie from response in the next request? HOT 1
- Configurable Timeout
- TypeError: Cannot read property 'hex' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strest.