Tests are failing when using multiple blueprints
See original GitHub issueI have an API with a lot of component. Each component has its own blueprint file and its own dredd config file. It’s working perfectly.
My idea is to run all those separated tests at one by including all blueprints in one file. Unfortunately it does not work. Most of the tests are failing because of my
I have a bunch of hook files which are loading data in the database for each test. My errors are all related to the database not being populated.
The following configurations are not working:
...
blueprint: src/doc/bp*.apib
...
...
blueprint:
- src/doc/bp*.apib
...
...
blueprint:
- src/doc/bp1.apib
- src/doc/bp2.apib
...
The following configuration are working:
...
blueprint:
- src/doc/bp1.apib
...
...
blueprint: src/doc/bp1.apib
...
Am I missing something? Is this related to dredd or to https://github.com/ddelnano/dredd-hooks-php?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:17 (10 by maintainers)
Top Results From Across the Web
Nested blueprint registration causes error when using test ...
This is a problem when testing. For the below code, test_2 will fail because child has already been registered on parent , resulting...
Read more >Flask Class views and Blueprints test case failure
The reason this test fails is because in your add function there is no interaction with the database. Check the methods on StudentModel...
Read more >Service Blueprinting: Fails and Fixes - Nielsen Norman Group
The most common pain points with service blueprinting are setting expectations, determining scope, and communicating insights, according to ...
Read more >Blueprint Deployment Testing with Cloud Assembly
Test runs, and receives a failure. We correct our network tagging and test indicates a successful provisioning will occur.
Read more >Functional Testing | Unreal Engine 4.27 Documentation
The PrepareTest function can be overridden in a code or Blueprint child class. This function is the first to run, along with the...
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 Free
Top 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
@vitkoczi @Zoltamcsak @matthiasKaeser We understand this is a wanted bug fix, but next time please use GitHub Reactions to express your feelings. Spamming a particular issue by +1 comments doesn’t help anyone.
My hunch would be this has been silently resolved by https://github.com/apiaryio/dredd/pull/803 in the past, so it’s not possible to reproduce the problem anymore. However, @vitkoczi @Zoltamcsak, and @matthiasKaeser were adding +1 just recently. Folks, what Dredd version are you using? Could you help us to reproduce the problem? Otherwise we’ll have to close this.