Comments (5)
What's .trx
?
from coverlet.
it's the logger output for dotnet test.
To run my tests, I do the following:
time \
dotnet test \
--no-build \
--no-restore \
--filter 'TestCategory!=Integration&TestCategory!=Explicit&TestCategory!=Performance' \
--logger:trx \
-r .output/ \
$testproj \
/nowarn:NU1701,NU1603,NU1605 \
/p:CollectCoverage=true \
/p:CoverletOutputFormat=opencover
the --logger:trx, produces the trx output file (which is vstest output format?). This is then picked up by sonarqube and processed to identify failed tests.
from coverlet.
@pms1969 Once again it seems we are have some of the same issues. I think it is because we are attempting to run this in a CI/CD environment. I encountered the same no output if I have the --no-build and --no-restore switch. When I removed the switch I would I get the "because it is being used by another process" issue again. I discovered if I let the process build into empty directory it would fail. When I ran a dotnet publish and specified the configuration switch to it previously run publish directory it would succeed. I have put my successful patterns below.
dotnet publish src/Server.Tests/Server.Tests.csproj -c Debug
dotnet add src/Server.Tests/Server.Tests.csproj package coverlet.msbuild --version 1.1.0
dotnet test src/Server.Tests/Server.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=json -c Debug
dotnet publish src/Server.Tests/Server.Tests.csproj -c Release
dotnet add src/Server.Tests/Server.Tests.csproj package coverlet.msbuild --version 1.1.0
dotnet test src/Server.Tests/Server.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=json -c Release
from coverlet.
@sampwil Thanks. I haven't had time to circle back to this yet. Hopefully soon. I thought I'd managed to rid us of the "used by another process" problem. but apparently not. There's a newer version out, since I posted this originally, so maybe something in there fixes this. maybe not :/ I'll just have to play again and see.
Unfortunately publishing, and rebuilding every time doesn't work for us. The coverage job takes neigh on 22 minutes at present. Using coverlet and linux docker instead of the current dotcover and windows, I can get the time down to 14'ish minutes. It has to be something simple.
from coverlet.
Moved discussion to #72
from coverlet.
Related Issues (20)
- [BUG] Namespace / assembly exclusions are not being obeyed from the .runsettings file. HOT 5
- [BUG] Records Result in No Coverage HOT 3
- [BUG] coverlet does not support multiple report formats using CoverletOutput parameter HOT 5
- Coverlet.collector: upgraded from 3.1.0 to 6.0.0 but still Newtonsoft.Json.9.0.1 is coming in coverlet.collector.deps.json HOT 6
- Coverlet throws BadImageFormatException HOT 11
- coverlet.collector is missing NuGet package README file HOT 2
- coverlet.msbuild is missing NuGet package README file HOT 2
- Trying to automate coverlet.collector HOT 1
- [BUG] Coverlet instrumentation becomes slow after installing dotnet sdk 8.0.200 HOT 10
- [BUG] 6.0.1 breaks with multiple exclude-by-attribute parameters HOT 3
- [BUG] 6.0.1 requires dotnetsdk 8 but doesn't say that HOT 24
- [BUG] Type initializer errors after updating from 6.0.0 to 6.0.1 HOT 14
- Unable to instrument module - NET 8 - Microsoft.Extensions.Logging.Abstractions HOT 10
- [BUG] Records show no coverage HOT 6
- [BUG] Parameter : threshold-stat triggered error HOT 5
- When using .NET 6 (with .NET 8 installed) picking wrong version of System.Text.Json [BUG] HOT 5
- [BUG] Missing code coverage when there is logic that sets a default value for a parameter of a specific type HOT 3
- [BUG] Coverlet.MSBuild 6.0.1/6.0.2 is not compatible with .NET Core 2.2 HOT 2
- [BUG] HasValue of Nullable<T> is not taken into account
- [BUG] Low modules filtering performance HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coverlet.