Все вопросы: [code-coverage]
142 вопросов
Java: измерение покрытия кода для удаленных тестов сценариев
У нас есть приложение, развернутое на JBoss 5.1, JDK 1.6. У нас также есть сценарии, написанные на PowerShell для тестирования.Эти скрипты обращаются к приложению через веб-службу. Я хотел бы проверить кодовое покрытие скриптов.Есть идеи? Большинство инструментов, которые я видел, проверяю...
Что такое хороший бесплатный инструмент покрытия C # модульными тестами?
Я ищу инструмент, который я могу использовать для своей базы кода, чтобы определить, какие области моего кода охватываются написанными мною тестами NUnit.Буду признателен за любые предложения и примеры использования, если это необходимо.Спасибо!
есть ли инструмент покрытия кода для модульных тестов TSQL sproc?
Я ищу инструмент unitttest и инструмент покрытия кода для TSQL sprocs.Кто-нибудь может порекомендовать хороший?Коммерческий или бесплатный.
Покрытие кода с помощью тестов mono и nunit
Я пытаюсь протестировать файл (Account.cs) с помощью тестового файла (AccountTest.cs). Я запускаю OSX 10.6 с Mono Framework (и nunit-console). Ниже Account.cs namespace bank { using System; public class InsufficientFundsException : ApplicationException { } public cl...
Можно ли исключить тестовые каталоги из отчетов о покрытии.
Я как бы новичок в модульном тестировании Python и особенно в покрытии .py.Желательно ли, чтобы отчеты о покрытии включали покрытие ваших реальных тестовых файлов? Вот скриншот моего HTML-отчета в качестве примера. Вы можете видеть, что отчет включает tests/test_credit_card. Сначала я пы...
Полное покрытие кода
Я пытаюсь получить полное покрытие кода для следующей строки кода ... stringWriter.Write(HtmlEncodedString.Format(string.Format("{0,-10:C}", x + y))) Строка над этой отображается как полностью закрытая и просто записывает строку, а эта отображается только как частично закрытая. У кого-н...
Где CoverageEye?Или другой бесплатный инструмент покрытия кода для .Net
Я искал CoverageEye, доступный на gotdotnet.Но после закрытия я не могу найти его в другом месте. Вы знаете об этом больше? Или еще один хороший инструмент для покрытия кода .net? Спасибо за вашу помощь,
Как сделать класс непроверяемым для покрытия кода?
Предпосылки: Visual Studio 2008, C #, .Net 3.5. У меня есть несколько служебных классов, которые просто нельзя тестировать. В основном это связано с тем, что они взаимодействуют с ресурсами (например, базами данных, файлами и т. Д.). Можно ли украсить эти классы, чтобы механизм покрытия ...
Setting up gcov in Xcode 3.1
I'm trying to setup my Xcode project to be instrumented with gcov so I can determine the code coverage of my unit tests. All of the documentation I find online talks about settings that I don't find in Xcode 3.1, though. An example: To work with Coverstory, first you need to set up your targe...
Acceptance Tests and Code Coverage
What is the best way to measure coverage for your Acceptance Tests?? How do you define how much your acceptance tests cover and when they are enough??
coverage.py: exclude files
How do I exclude entire files from coverage.py reports? According to the documentation you can exclude code by matching lines. I want to exclude entire files, so that the reports don't include 3rd party libraries. Am I missing something? Can it be done?
FlexCover 0.81 throws ServicesDepdendency Error no matter what
I've used FlexCover quite a bit before so this is absolutely absurd to me. No matter what version of the flex sdk (3.0, 3.2, or 4) that I apply the appropriate patches too, I get the following error when trying to compile: mxmlc Test.as Error: flex/messaging/config/ServicesDependencies java.la...
Code coverage tools in Java
Are there any such code coverage tools in Java that give the different paths in the program. Basically the idea is to ensure that all loops and nested loops are covered during execution. That is to be able to ascertain if all the loops in a code base have been executed at least through one iterat...
Code coverage tools for Symbian C++ and Maemo
What code coverage tools have you used with Symbian C++ and Maemo? What are the pros and cons of the tool you are using?
Unit testing code coverage - do you have 100% coverage?
Do your unit tests constitute 100% code coverage? Yes or no, and why or why not.
Java unit test coverage numbers do not match
Below is a class I have written in a web application I am building using Java Google App Engine. I have written Unit Tests using TestNG and all the tests pass. I then run EclEmma in Eclipse to see the test coverage on my code. All the functions show 100% coverage but the file as a whole is showin...
Can gcc/gcov be made to output coverage stats to a location other than the source folder?
When using gcc with -fprofile-arcs and -ftest-coverage, when the resulting executable terminates, it tries to create .gcda output files in the same location as the .o files used to compile the executable. This is inconvenient when I'm running on a different machine than the one I built on -- is ...
Javascript Code Coverage tool for IE
I've got a rather hideous and large javascript file that I've inherited from a dev I loathe. There is a lot of dead code, and I find I've spent a lot of time refactoring functions that aren't even called. Ideally, I just want something that can tie into the js engine and keep track of when and ...
Java code coverage in Hudson
I'm migrating a couple of projects from an ant build to a maven one. The build server is , and will remain, Hudson. I've been having trouble recording code coverage in hudson with cobertura due to the tests run and recorded twice problem. The project is multi-module and it would be nice, althou...
Why does Visual Studio say "Code Coverage is not enabled for this test run" when it's enabled?
In Visual Studio, I just created a simple Unit Test to test a method I wrote. I wanted to check the code coverage, but the Code Coverage window only ever states that "Code Coverage is not enabled for this test run". Why? Note: I've already followed the instructions on this page, i.e. the test c...
Why doesn't gcov report any lines being covered by my unit tests?
I am using Xcode 3.2 on 10.6, with the shipped version of gcov and default GCC compiler (both version 4.2.1). I have created a dependent Cocoa unit test bundle which is injected into my app, and followed Apple's documentation on setting up a gcov-instrumented build configuration - based on the De...
Does gcov give code coverage analysis for assembly language code
I have an application which i build using gcc on linux host for ARM target processor. This generated arm executable i execute on a ARM development board i have. I want to do some code coverage analysis: Will gcov show code coverage if i have ARM assembly source files in my build environment? If...
Visual Studio: Code coverage not generated for signed assemblies
We are developing a system using c# in Visual Studio 2008. When I configure VS to instrument my dll's and run the tests, only the dll that is not signed gets instrumented (nice way to find that we forgot one). Is there a way to generate code coverage on signed dll's or do I have to un sign them...
Generate test coverage information from pyunit unittests?
I have some pyunit unit tests for a simple command line programme I'm writing. Is it possible for me to generate test coverage numbers? I want to see what lines aren't being covered by my tests.
MSBuild: build results shows 'no code coverage' while importing test-result does
I have a strange problem, my MSBuild runs tests, code-coverage and publishing fine (part of the build.txt shown): Results Top Level Tests ------- --------------- Passed BuildTestProject.UnitTest1.TestMethod1 Passed BuildTestP...
Is there any info on NHibernate code coverage (by its test suite)?
Just curious. Tried to google this, but found nothing. I remember earlier there was some information related to this, but now I can't find anything at all. So... I'd appreciate any help ;)
Writing a Path Coverage Tool
Currently, one of our production systems is handled by over 3000 programs written between 1986 and now . The code base is written in a non-standard language, which unfortunately lacks modern testing tools. In a bid to improve our code quality moving forward I have been working to incorporate pro...
Gcov reporting unexpected cover results
I made some changes to a library to keep it inline with a project. I ran the test and everything still passed but the coverage is no longer 100%. I investigated and saw that the code is executed just not reported. But I have no idea why gcov is not reporting coverage for the line when it is execu...
Use attribute to omit code from coverage analysis in Visual Studio
I have some classes that, for one reason or another, cannot be or need not be unit tested. I'd like to exclude these classes from my coverage metrics so that I can get a better feel for the coverage on the classes I actually care about. Right now I have to exclude the results after the fact. W...
C++ code coverage tool for weird target platform
Anyone knows c++ code coverage tool usable under the following conditions: Target platform is PowerPC CPU inside Nintendo WII dev.kit, that runs custom embedded OS. The only way to exchange data with the PC is to use custom proprietary API (sorry for my NDA). Compiler is not Microsoft, not GCC,...