Posts

Showing posts with the label unit-testing

Unit test coverage using dotCover command line tool(JetBrains) - Is it possible to run this tool with x64 dll tests?

Unit test coverage using dotCover command line tool(JetBrains) - Is it possible to run this tool with x64 dll tests? I am using dotCover command line tool(JetBrains) https://www.jetbrains.com/dotcover/download/#section=commandline I was reading this documentation https://www.jetbrains.com/help/dotcover/Running_Coverage_Analysis_from_the_Command_LIne.html I have a logic dll - x64 compiled. I have a tests dll (AppTests Test project) -x64 compiled I was creating coverage.xml on my solution Items folder with the parameters below <AnalyseParams> <TargetExecutable>C:Program Files (x86)Microsoft Visual Studio12.0Common7IDEMSTest.exe</TargetExecutable> <TargetArguments>D:ProjectsTheApplicationbinDebugAppTests.dll</TargetArguments> <Output>AppCoverageReport.html</Output> <ReportType>html</ReportType> </AnalyseParams> From the cmd I am typing "dotcover analyse coverage.xml" I am getting the flowing Erro...

zip folder with source and target

zip folder with source and target I use the following code which zip some folder to a given path,the issue that im currently facing is that I need to zip some folder with content into specific target and not in the same directory For example Folder in path like source "/Users/i03434/go/src/zdf/BUILD" "/Users/i03434/go/src/zdf/BUILD" target "/Users/i03434/go/src/zdf/app/info.zip" "/Users/i03434/go/src/zdf/app/info.zip" currently I try to add new path[2] which doesnt helps, any idea how to do it? This is all the code func zipit(params ...string) error { zipfile, err := os.Create(params[1]) if err != nil { return err } defer zipfile.Close() archive := zip.NewWriter(zipfile) defer archive.Close() info, err := os.Stat(params[0]) if err != nil { return err } var baseDir string if info.IsDir(); len(params) > 2 { baseDir = params[2] } else { baseDir = filepath.Base(params[...