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

How to use luacov on Windows #75

Open
zhengyanan1 opened this issue Aug 13, 2019 · 1 comment
Open

How to use luacov on Windows #75

zhengyanan1 opened this issue Aug 13, 2019 · 1 comment

Comments

@zhengyanan1
Copy link

package.path = package.path .. ';E:\\hardenzheng\\projects\\luacov\\src\\?.lua';
require("luacov")

if 10 > 100 then
    print("this line will not run")
else
    print("Hello, LuaCov")
end

Here is my code.
I am trying to use luacov under Windows.
First, I input ''lua test.lua" in the command line under the path of the above file, it works. I can find a file named "luacov.stats.out".
Next, I input "lua luacov", It doesn't work and tips "lua: cannot open luacov: No such file or directory"

@hishamhm
Copy link
Member

Next, I input "lua luacov",

You can try the full path where the luacov main script is:

lua c:\.....\luacov 

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

No branches or pull requests

2 participants