dredd: Tests are failing when using multiple blueprints

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?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 17 (10 by maintainers)

Most upvoted comments

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