Giter Club home page Giter Club logo

Comments (9)

spawnia avatar spawnia commented on May 5, 2024 2

Is this issue still relevant?

Somewhat. Perhaps it does not need to stand on its own, as by itself it is not really actionable, but it would be relevant when beginning work on an implementation of a test suite.

How about this: we leave this and other issues labeled with "audits" open until the next working group and decide on a plan for the test suite then. In terms of organisation, perhaps a working test suite could be a milestone?

from graphql-over-http.

sjparsons avatar sjparsons commented on May 5, 2024 1

We talked about this a bit at the working group meeting today. One of things we explored was the ability to run the test suite in the browser. This would allow us to provide a service where people could enter a URL and then receive results in their browser. They wouldn't have to download or set up anything and they could point it to private URLs that only they had access to.

We also talked about possibly finding a way to do this within GraphiQL perhaps as some plugin/module.

Although we may want to run the test in the command line, there's some benefits to also being able to run them in the browser.

@jaydenseric agreed to take up an action and help draft a PoC over the next month to explore that. @spawnia please feel free to be as involved as you want to be, but we didn't want to give you a action when you weren't present!

The way I see it, is that a PoC allows us to explore this and see if there are any issues. There's nothing stopping us looking at a couple of PoCs to explore different possibilities if others have some other ideas in mind.

from graphql-over-http.

IvanGoncharov avatar IvanGoncharov commented on May 5, 2024

@spawnia Thanks for volunteering 👍
One more factor: GraphiQL team moved their codebase to TS + Jest and I plan to do the same for graphql-js/express-graphql and since some features (e.g. batching) involve modifying graphql-js, express-graphql, GraphiQL and our future test suite it would be great if we keep it unified.
That said I'm totally for using some other stack if it will provide significant benefits.

from graphql-over-http.

spawnia avatar spawnia commented on May 5, 2024

Oh yeah, when i say JavaScript i actually mean TypeScript.

I am going to try out Gauge and Cucumber for a bit and see if they actually simplify writing tests. If not, the combination of Jest + TS looks like a solid pick.

from graphql-over-http.

sjparsons avatar sjparsons commented on May 5, 2024

I'm all for Jest + TS based on my personal experience. Jest is very ergonomic.

from graphql-over-http.

balshor avatar balshor commented on May 5, 2024

Although we may want to run the test in the command line, there's some benefits to also being able to run them in the browser.

Browser based tests are significantly harder to integrate into build pipelines, both locally for developers and in the CI pipeline. If there is a way to easily run the tests from the CLI and without a browser, we will be much more likely to be able to continuously validate that our GraphQL services follow the spec.

from graphql-over-http.

spawnia avatar spawnia commented on May 5, 2024

I don't really see the use case for running them in the browser, i guess it could be a quick way for a one-of check of an API? I would always go for an automatic process that continually asserts spec compliancy of a GraphQL server i develop/depend on.

I think that automatic test execution should be our first priority, so i would focus on a CLI tool first before attempting browser integration. That said, if something like a GraphiQL integration can be tacked on without much additional effort, i am not opposed to it.

from graphql-over-http.

ghmcadams avatar ghmcadams commented on May 5, 2024

@spawnia Is this issue still relevant?

from graphql-over-http.

spawnia avatar spawnia commented on May 5, 2024

Feedback from the July 2022 working group meeting:

Thanks everyone for the input, I intend to try implementing something with webonyx/graphql-php#1206

from graphql-over-http.

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.