Add support for Diff mode in JUnit 5
See original GitHub issueAdd 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:
- Created 5 years ago
- Reactions:1
- Comments:12 (12 by maintainers)
Top 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 >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
PR done: https://github.com/SpectoLabs/hoverfly-java/pull/207
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