Skip to content

List of dataproviders is not clean for a second test-file that does not use data-providers #6

@urs

Description

@urs

Running two test-files, one with multiple tests using data-providers, one without data-provider causes errors:

$ bash-test test_*                                                                                                                                                  
bash-test v0.2.0 by Campanda GmbH and contributors.

test_with_dataproviders.sh
bar
  ✓ _test_bar foo
foo
  ✓ _test_foo foo

test_without_dataproviders.sh
baz
  ✓ test_baz
../bash-test: line 105: : No such file or directory
../bash-test: line 111: unset: `data_provider_for_test_foo'': not a valid identifier

 3 tests completed.

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