Skip to content

[BATS] Changing current directory results in no coverage #479

@jakub-bochenski

Description

@jakub-bochenski

If I have a bats setup_suite.bats file like this

#!/bin/bash

setup_suite() {

  cd "$(dirname "$BATS_TEST_FILENAME")" || return 1

}

it will result in empty coverage report.

If I comment that line with cd I get an expected coverage report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions