Posts

Showing posts with the label code-coverage

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...

Jest coverage highlighting in emacs not updating after change

Jest coverage highlighting in emacs not updating after change I have emacs minor mode for jest coverage highlighting and when I change coverage (update my tests) and run this function the highlighting is not updating. (defun jc/mark-buffer () (interactive) (let* ((dir (jc/root-git-repo)) (json-object-type 'hash-table) (json-array-type 'list) (json-key-type 'string) (json (json-read-file (concat dir "/coverage/coverage-final.json"))) (filename (buffer-file-name (current-buffer))) (coverage (gethash filename json)) (statments (gethash "statementMap" coverage))) (save-excursion (let ((coverage-list (gethash "s" coverage)) (covered 0) (not-covered 0)) (maphash (lambda (key value) (if (not (and jc/statements (= (gethash key jc/statements) value))) (let* ((statment (gethash key statments)) ...