Skip to content

Global west state makes it harder to unit test  #149

@mbolivar

Description

@mbolivar

West has some global state that makes it harder to write proper unit tests. Examples:

  • global configuration state is written into a module-level object in west.config
  • log verbosity level is too

This makes it harder to write proper unit tests and causes other annoyances.


2024 update:

We're down to west.log at this point. We can close this issue once that deprecated module is removed sometime in the west 2.0 or later timeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions