Skip to content

Run a collection in the CLI using Global Environments #518

@edwa1359

Description

@edwa1359

All of my Collections use the same environment variables so It does not make sense for me to replicate all my environment variables in each collections, so I use Global Environments. This works great in the UI but I am not able to have the CLI use my Global environments. I was glad to see that with version 3 Bruno has broken out the Global environments into seperate .yml files. It seems like this should allow for me to use my Global environments in the CLI. I have tests that set and Get Global variables and I need to validate them in my tests. Here is an example of what I have tried to run: bru run . -r --global-env Dev --delay=400. I run this from the \AppData\Roaming\bruno\default-workspace\collections__Run_Messaging_Tests folder. That folder has sub collections. I would expect this to use the Dev.yml file in the \AppData\Roaming\bruno\default-workspace\environments folder.

What am I missing?
Ed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions