Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test data being overwritten #29

Closed
oreganrob opened this issue Oct 25, 2017 · 3 comments
Closed

Test data being overwritten #29

oreganrob opened this issue Oct 25, 2017 · 3 comments

Comments

@oreganrob
Copy link

Hi,

I have a bit of an odd setup for my test suite.
We use a combination of Python and Bash for our project (probably 70-80% bash scripts right now).
We are building a unit test suite retrospectively and I was looking for a tool to show us where the gaps are in our testing.
We started to build the test suite on Python as we felt it offered more features. So we have test classes that call bash scripts and check the stdout and stderr. They are run using the standard...

python -m unittest discover -s test -p '*_test.py'

This call is in a bash script called "runTests.sh" and we call it using "bashcov ./runTests.sh".
This produces a report which includes all the bash scripts even if they aren't touched by a test (which is great!). However, what seems to be happening is the results are getting nobbled as the tests progress. The only data in the report is generally the last test that ran. The coverage stats for all the other test (which have run) is 0.
Do you know if there is a way to get this working?

Thanks!

@infertux
Copy link
Owner

Sounds like a duplicate of #28?

@infertux
Copy link
Owner

Hey @Fatlog, I think your issue might actually be #33. Could you update to the latest version with gem update bashcov then try again. Please paste the output here if you're still having issues. Thanks.

@infertux
Copy link
Owner

See #28 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants