question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a testing tool

See original GitHub issue

People 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
alexey-wg2commented, Jun 11, 2019

I can take this 😃

0reactions
oharaandrew314commented, Oct 7, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found