Create a testing tool
See original GitHub issuePeople all have their own way of integration-testing Javalin apps. Maybe we should create an official package with a http-client and a set of useful methods?
The main goal is enabling people (and the Javalin project itself), to setup simple tests like this:
@Test
fun `error-mapper works for 500`() = TestUtil.test { app, http ->
app.get("/exception") { throw RuntimeException() }
app.error(500) { ctx -> ctx.result("Custom 500 page") }
assertThat(http.getBody("/exception")).isEqualTo("Custom 500 page")
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:17 (14 by maintainers)
Top Results From Across the Web
15 Best Automation Testing Tools & Frameworks | List for 2022
Automation Testing Tools - How to Choose The Right One · Top 15 List of Automation Testing Tools (with Feature Highlights) · Katalon...
Read more >50 BEST Software Testing Tools List (Dec 2022 Update)
Best Software Testing Tools: ✔️ TestRail ✔️ Testpad ✔️ Xray ✔️ Practitest ✔️ Zephyr Scale ✔️ SpiraTest ✔️ TestMonitor and ...
Read more >12 Best Automated Unit Testing Tools [LATEST 2022 RANKING]
Let's look at different tools available for creating automated units and end-to-end functional automated tests.
Read more >How to Develop a Test Automation Framework From Scratch?
In this step-by-step guide, I will describe how to develop a modularized Test Automation Framework from scratch using Java, Selenium, ...
Read more >TestProject: Free Test Automation For All
Create reliable codeless tests powered by self-healing, adaptive wait and community addons, or extend even further with the OpenSDK.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can take this 😃
@tipsy I agree it’s probably best to include it as a submodule. I had some work in progress to incorporate Rest Assured into the test project, but I think it would be pretty simple to add it to the JUnit Rule if we desire.