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

Shell script calling python script not shown in the coverage report #177

Open
bhaskarrana opened this issue Jan 14, 2017 · 5 comments
Open

Comments

@bhaskarrana
Copy link

Hi Simon,

As i am using shell script, which internally call python and shell script.
In the coverage report , we are not seeing the python scripts.
Below is the script used

cat test1.sh
#!/bin/bash
echo "first script"
python first.py
./test2.sh

cat test2.sh
#!/bin/bash
echo "second script"

cat first.py
print "hello world"

Running the script
kcov /tmp/abc/ test1.sh
first script
hello world
second script

It only show the two files test1,sh and test2.sh as 100% covered.
Kindly advice.

Regards
Bhaskar Rana

@bhaskarrana
Copy link
Author

This can be achieved by this
#!/bin/bash
echo "first script"
kcov /tmp/abc first.py
./test2.sh

But we are not looking this way .

@SimonKagstrom
Copy link
Owner

Unfortuntately, kcov doesn't work across languages - a session is either bash or python, but not both. I'll keep the bug report open, but I think it might be non-trivial to implement.

Probably bash -> python is doable, but the other way around is likely to be much more difficult.,

@bhaskarrana
Copy link
Author

Hi Simon,
I will appreciate , it is in your road map ? if so any timelines on this .
Kindly advice .

Regards
Bhaskar Rana

@SimonKagstrom
Copy link
Owner

I'm afraid I don't have any plans for that at the moment. It would be a fairly error-prone way to go anyway I think.

@gszep
Copy link

gszep commented Jul 13, 2023

I would love to have bash -> python implemented 👍🏼

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

3 participants