Approaches for a DSL for API-level testing

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Approaches for a DSL for API-level testing

Damian Nadales

I'm writing an embedded DSL for API level testing. The idea in a
nutshell is that I can write tests like the following one:

    createProjectCreates = do
      p <- createProject "foobar"
      ps <- getProjects
      ps `shouldContain` p


I show a sketch of the solution I'm working on, and the issues I'm running into.

I wonder whether there are other approaches to embedded DSL writing in
Haskell that allows for a better compositionality and separation of

Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
Only members subscribed via the mailman list are allowed to post.