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.

Add support for Diff mode in JUnit 5

See original GitHub issue

Add support for Diff mode in JUnit 5 so you can use annotations instead of a programmatic way.

This implies creating two annotations @HoverflyDiff (Hoverfly hoverfly = new Hoverfly(configs(), DIFF) hoverfly.importSimulation(classpath("simulation-to-compare.json"));)

and @HoverflyValidate ( hoverfly.assertThatNoDiffIsReported(false)😉

I am starting working on it

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
tommysitucommented, Mar 14, 2019

That’ll be great! Presumably, @HoverflyValidate can be used on both class and method levels?

What about calling it @HoverflyCompare because Diff is for comparing the simulation and the real response? What do you think @JohnFDavenport?

Also worth to mention that you can filter out headers when doing a diff since hoverfly v0.17.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing Tests with JUnit 5 | The IntelliJ IDEA Blog
JUnit 5 supports this with a @Disabled annotation. We can add descriptive text to state why the test is not to be run....
Read more >
Complete JUnit 5 Mockito Tutorial For Unit Testing - LambdaTest
It shows how to add a mock object to a test case and verify its behavior with JUnit 5. JUnit 5 has an...
Read more >
JUnit 5 Vintage and the JUnit Jupiter Extension Model
Find out how JUnit Vintage has you covered for backward compatibility with older versions of JUnit, then get started with JUnit Jupiter ...
Read more >
Unit Testing in Java with JUnit 5 - Stack Abuse
JUnit is a popular testing framework for Java. Simple use is very straightforward and JUnit 5 brought some differences and conveniences ...
Read more >
JUnit 5 User Guide
The ExecutionCondition extension API in JUnit Jupiter allows developers to either enable or disable a container or test based on certain ...
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