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.

Tests are failing when using multiple blueprints

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
honzajavorekcommented, Nov 28, 2017

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

0reactions
honzajavorekcommented, Dec 12, 2017

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.

Read more comments on GitHub >

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

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