Skip to content

Specifying global document overrides for tests? #460

Discussion options

You must be logged in to vote

Put the data into a single folder (eg fixtures/data.json). Downside is that each test rule has to specify a with data.applications as data.fixtures.applications which is very repetitious.

Not sure you'd need that. If you run the tests without the --bundle flag, like:

opa test bundle/ fixtures/

you could just have a data.json file in the fixtures dir where the path was provided in the file rather than by directory structure, e.g.

{
  "applications": {
    "...": "..."
  }
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@johnrengelman
Comment options

Answer selected by johnrengelman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants