Giter Site home page Giter Site logo

Executive Summary about ex_check HOT 3 CLOSED

karolsluszniak avatar karolsluszniak commented on August 29, 2024
Executive Summary

from ex_check.

Comments (3)

karolsluszniak avatar karolsluszniak commented on August 29, 2024 1

Sorry for taking some time, but I'm coming back with a good news. I've added support for producing manifest file in #24. Since it's plaintext that includes list of all passed, failed and skipped checks, and since --manifest command line option allows to specify the file path, it should cover your needs from this issue.

Btw, my motivation for doing this was to allow to only run failed tools with --failed command line option, just like ExUnit allows. But it's great to kill two birds with one shot :)

I'll merge and release v0.13 with this addition as well as all others from you in next few days.

from ex_check.

karolsluszniak avatar karolsluszniak commented on August 29, 2024

Hmm, so you'd basically like to run as usual but also produce the artifact / log with summary - i.e. info about passed and failed checks? Sounds reasonable, but there are a few questions to answer:

  1. What format do we produce the output in? Is there any standard format that we could go for e.g. JUnit or simply HTML / text? It'd be nice to avoid adding deps like a JSON lib since currently ex_check intentionally has none to stay lightweight & non-invasive.
  2. Do we also include output from specific checks? If so, in the same file or separate ones?
  3. Do we want to allow switching the format, e.g. to enable CI integration - some CIs allow JUnit files there.

Aside from that, there are a few things that I don't understand in your described use case:

  1. How do you intend to produce a PR comment out of the summary file? Maybe that should be a part of ex_check too?
  2. How would producing such summary file save your developers from skipping credo? Perhaps you could simply check for that e.g. by parsing mix.lock in projects?

Please elaborate :)

from ex_check.

asummers avatar asummers commented on August 29, 2024

For JSON, I the general pattern is to do a check for e.g. Jason before spitting it out, but in the interest of making it extensible, maybe allowing a user to specify an output format module would be a good future goal if need arises, so someone could export as HTML, JSON, XML, whatever. For my purposes, a plain text comment is completely sufficient, and I don't need any external dependencies.

Having ex_check write that to a file would be useful. Then it's just snaking that output file into postprocessing as needed and eventual curl calls. For credo, I was more talking about seeing the visual feedback in the output on the PR of "skipped due to not having credo", but I realize I can simply take off the detect to make it run always. Nonetheless, having the users be able to stay on GitHub and see the failures without having to go to CI and see the summary would be useful to others besides myself, I think =)

from ex_check.

Related Issues (15)

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.