Giter Site home page Giter Site logo

Feature: Logfiles about strest HOT 6 CLOSED

eykrehbein avatar eykrehbein commented on July 29, 2024
Feature: Logfiles

from strest.

Comments (6)

jgroom33 avatar jgroom33 commented on July 29, 2024 1

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.

jgroom33 avatar jgroom33 commented on July 29, 2024

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.

eykrehbein avatar eykrehbein commented on July 29, 2024

@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.

jgroom33 avatar jgroom33 commented on July 29, 2024

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.

eykrehbein avatar eykrehbein commented on July 29, 2024

What is more attractive for professional usage? The more descriptive logging style as it is rn or just blank stdout logs?

from strest.

jgroom33 avatar jgroom33 commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.