wolfiton

wolfiton

Absinthe testing poll

Hi everyone,

I am creating this pool to understand why people choose Wormwood and exunit for testing there Absinthe API.
This pool will be different because each choice in the pool will have a short introduction.

ExUnit Absinthe API Testing

In order to test Absinthe Api with Exunit we will need to treat our api as an json api and use http requests using ConnCase.
More info here ExUnit — ExUnit v1.20.2

Wormwood Absinthe Api Testing
Wormwood will test directly the graphql query and it will not need to use any http request to do so.
More info here Wormwood - an Explicit Way to Test Absinthe GraphQL APIs | Black Duck Blog

What Absinthe testing framework do you use?

  • ExUnit
  • Wormwood
0 voters

Also please after you vote if you want to explain why you choose one or the other, it would be great.

Thanks

First Post!

wolfiton

wolfiton

I use wormwood because it works even if a new version of absinthe or absinthe plug is coming out(unless they implement breaking changes). So it’s a lot more reliable when you want to have a peace of mind, also the code you write for the test can be reused on the front-end from the gql files.

Where Next?

Popular in Discussions Top

ricklove
I was just introduced to Elixir and Phoenix. I was told about the 2 million websocket test that was done 2 years ago. From my research, t...
New
und0ck3d
Hello everyone! A few days ago I’ve created a topic here about how people were creating CMSs with Elixir and Phoenix. I’ve been studying...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
pdgonzalez872
If this has been asked here before, please point me to where it was asked as I didn’t find it when I searched the forum. Maybe a mailing ...
New
wmnnd
The Go vs Elixir thread got me thinking: Would it be too hard to implement a simple mechanism for creating Go-style static app binaries f...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
arcanemachine
https://nitter.net/josevalim/status/1744395345872683471 https://twitter.com/josevalim/status/1744395345872683471
New

Other popular topics Top

openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement