Commit Graph

457 Commits

Author SHA1 Message Date
Marco Rossignoli 1bb08bb518 Inject InstrumentationHelper (#531)
Inject InstrumentationHelper
2019-09-10 12:56:04 +02:00
Marco Rossignoli afe227b39e Fix exclude by files (#524)
Fix exclude by files
2019-09-06 12:23:45 +02:00
Marco Rossignoli a167c391d7 Add switch test (#526)
Add switch test
2019-09-04 11:37:42 +02:00
Marco Rossignoli 15eeb98f5d Revert "Add [xunit*]* to default excluded modules filter if not specified" (#519) 2019-08-28 22:05:20 +03:00
Marco Rossignoli 428034d46a improve output (#517) 2019-08-15 11:03:09 +02:00
Marco Rossignoli 0faaeea54e Skip instrumentation of module with embedded ppbd without local sources (#510)
* handle ppbd without local sources

* add test

* nit formatting

* check all docs existence

* update tests
2019-08-14 14:35:16 +01:00
Marco Rossignoli cca16685ed Improve instrumentation tests (#420)
Improve instrumentation tests
2019-08-09 20:00:50 +02:00
daveMueller b970ab3df5 Using solution wide Directory.Build.targets (#512)
Using solution wide Directory.Build.targets to keep reference version in sync
2019-08-08 14:21:03 +02:00
Diego Pardo 83e93db6d8 [Bug fix] Put the same code that is in covelet.console to show the same result in 'average' (tonerdo#346) (#509)
Show correct average calculation using msbuild task
2019-08-03 09:30:08 +02:00
Marco Rossignoli 55c866f142 Upgrade Mono.Cecil to avoid re-order of attributes on re-write. (#508)
Upgrade Mono.Cecil to avoid re-order of attributes on re-write.
2019-07-31 12:45:24 +02:00
Diego Pardo 4d61d296e3 Changed to calculate based on the average coverage of the modules (#479)
* [Bug fix]Changed to calculate based on the average coverage of the modules. (#346)
2019-07-27 10:14:45 +02:00
dijitle 84d47a144c fixing TeamCity Service Messages (#493)
TeamCity uses B, not R, for branching. Also removed the percentage, as teamcity automatically calculates from covered and total
2019-07-25 18:31:06 +01:00
Marco Rossignoli 320763daad Revert "Using File.Exists for HitsFile creation/update validation" 2019-07-24 17:39:33 +02:00
Viktor Hofer 13a917a774 Fix setter only property instrumentation 2019-07-22 23:46:50 +02:00
Marco Rossignoli 016c3630ca Merge pull request #481 from xuhongxu96/fix-cobertura
Fixed index out of range bug in CoberturaReporter when method name has two double-colons
2019-07-16 15:18:27 +02:00
Viktor Hofer a339983da4 Add a major roll-forward policy (#487) 2019-07-15 13:35:59 +01:00
Adam Weiss ec04c7d82f Fix property attribute detection (#477)
* Fix property customattribute detection

* chore(style): Remove brackets from one line if

* chore(style): Use explicit type
2019-07-03 20:49:49 +01:00
Hongxu Xu 82baa5d170 Fixed index out of range bug in CoberturaReporter 2019-07-02 23:39:44 +08:00
Vishnu Kumar 8cb31cb6b8 Different exit codes to indicate particular failures (#412)
* Different exit codes for coverlet process to indicate particular error if any.

* ExitCodes in a separate file and using [Flags] attribute on Enum.

* Adding up the enum flag values for exit code aggregation always after initial assignment.

Co-Authored-By: Marco Rossignoli <marco.rossignoli@gmail.com>

* Fix formating - empty space
2019-06-30 17:03:07 +01:00
Andrew Arnott 53a3242437 Index sources into PDBs (#442)
Use SourceLink so that debugging into sources is easy.
Also rely on thet .NET SDK to set the RepositoryUrl property.
2019-06-27 10:37:34 +01:00
Marco Rossignoli f14ee2b7fb [Bug fix]Fix culture for cobertura xml report (#464)
* fix cobertura report culture

* improve test

* improve test

* update test
2019-06-17 13:41:25 -06:00
Toni Solarin-Sodara 7bd804d732 Merge pull request #458 from MarcoRossignoli/fixjsonserializerbug
[Bug fix]Fix instrumentation serialization bug
2019-06-17 13:40:29 -06:00
Marco Rossignoli 4e2c357805 Merge pull request #462 from MarcoRossignoli/defaultexcludedfiles
Add `[xunit*]*` to default excluded modules filter if not specified
2019-06-10 20:56:24 +02:00
Marco Rossignoli 773a23cf7e exclude xunit if empty exclude filters 2019-06-10 17:21:29 +02:00
Marco Rossignoli 6ee2d9bc0c fix serialization bug 2019-06-07 21:43:20 +02:00
Marco Rossignoli 9aad14a1ac let nbgv bump PATCH 2019-06-07 08:50:29 +02:00
Marco Rossignoli a470b76812 update newtosoft 2019-06-06 20:11:55 +02:00
Toni Solarin-Sodara 3e7eac9df0 bump version numbers 2019-06-06 11:51:54 +01:00
Toni Solarin-Sodara e5998d8fbd Merge pull request #451 from AArnott/versionPatch
Remove PATCH from version.json
2019-06-01 00:22:30 +01:00
Toni Solarin-Sodara 5a139b200f simple code cleanup 2019-05-29 23:49:19 +01:00
Andrew Arnott 79566b1d8f Remove PATCH from version.json
This allows for simpler and more descriptive file versions.
2019-05-29 13:02:41 -06:00
Toni Solarin-Sodara 3570fc95d0 Merge pull request #434 from AArnott/incrementalbuild
Fix `dotnet build` of a clean repo
2019-05-28 16:08:04 +01:00
Toni Solarin-Sodara 13c2e2b0c0 Merge pull request #437 from MarcoRossignoli/fixsourcelinkbug
[Bug fix]Fix "/p:UseSourceLink=true" bug
2019-05-28 16:03:17 +01:00
Marco Rossignoli 28765d901e fix UseSourceLink bug 2019-05-27 17:11:32 +02:00
Andrew Arnott 8936397757 Resolve merge conflicts with master 2019-05-27 08:03:13 -06:00
Andrew Arnott f016c7b5bb Fix dotnet build of a clean repo
For a perfectly clean repo (git clean -fdx), `dotnet build` fails because some tests require that other projects have been built using build.proj first.

This change adds the necessary build ordering instructions so that the build tasks are always built before the tests that need them, and the tests are always run against the *latest* source code being tested rather than the last version that happened to be built with build.proj.
2019-05-26 21:18:42 -06:00
Andrew Arnott 4649985ac0 Replace checked in .nuspec file with generated one
All the redundancy between the .nuspec file and the .csproj file (both express and implied) is now removed. With it, I fix a few bugs:

1. The generated nuspec file includes the developmentDependency tag that was in the project file but not the checked in file.
1. The package now applies to *all* projects regardless of their target framework (well, so long as they're .netstandard1.0 compatible) instead of all projects rejecting this package unless they targeted .NET Core 2.0 or higher.

I also moved the .targets file into a folder structure within the project that resembles where it will appear in the package. This makes it more obvious that it belongs to the package when looking at the source code, and makes it easier to maintain the build/ folder in the package going forward because all files in it are included.

Fixes #431
2019-05-26 19:07:33 -06:00
Andrew Arnott 47bfd91071 Add missing IsTestProject and IsPackable properties
This lets us "pack" the solution instead of listing out each project individually, since projects know themselves whether they should be packable.
2019-05-26 18:22:11 -06:00
Marco Rossignoli cd9f504328 setup nightly build 2019-05-26 17:29:44 +02:00
Toni Solarin-Sodara 87f4dda3de fix code formatting 2019-05-20 16:36:54 +01:00
Toni Solarin-Sodara b3e349e1e4 Merge pull request #410 from vagisha-nidhi/coverletDatacollectors
Coverlet Intergration with VSTest
2019-05-20 13:23:54 +01:00
Vagisha Nidhi 56855bc865 Unload module raise exception 2019-05-20 15:52:50 +05:30
Vagisha Nidhi 28aa07fcc4 Adding diagnostic logs 2019-05-20 14:12:10 +05:30
Vishnu Kumar ebbf118a30 File.Exists instead of try-catch for HitsFile creation/update validation 2019-05-19 18:40:54 +05:30
Vagisha Nidhi faa5b92a54 Nit change 2019-05-16 15:59:19 +05:30
Vagisha Nidhi 73de95d653 Variable change suggestion 2019-05-16 15:53:09 +05:30
Vagisha Nidhi c2d30e0848 Review comments addressed 2019-05-16 15:02:32 +05:30
Vagisha Nidhi f5ffe46be9 Modifying build.proj for including collectors build and test 2019-05-15 14:29:30 +05:30
Vagisha Nidhi 59c5af61e8 Coverlet DataCollectors Implementation 2019-05-15 14:06:21 +05:30
Marco Rossignoli 0e0f65f561 Update src/coverlet.msbuild.tasks/CoverageResultTask.cs
Co-Authored-By: Toni Solarin-Sodara <toni.edward@outlook.com>
2019-05-13 21:18:55 +02:00