Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integration test for .NET global tool on unix systems #660

Closed
MarcoRossignoli opened this issue Dec 18, 2019 · 2 comments
Closed

Fix integration test for .NET global tool on unix systems #660

MarcoRossignoli opened this issue Dec 18, 2019 · 2 comments
Assignees
Labels
os-linux Linux OS os-mac Mac OS Solved The issue is solved and can be closed test bug Problem in test source code (most likely)

Comments

@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented Dec 18, 2019

For the moment we don't test .net global tool on unix systems because we get an "access denied" exception on ubuntu.

https://github.com/tonerdo/coverlet/blob/7cad9b3f58f2414d870a4cbe248ee8c93ed558a9/test/coverlet.integration.tests/DotnetTool.cs#L22

@MarcoRossignoli MarcoRossignoli added test bug Problem in test source code (most likely) up-for-grabs Good issue for contributors os-linux Linux OS os-mac Mac OS labels Dec 18, 2019
@MarcoRossignoli MarcoRossignoli changed the title Fix integration test for .NET global tool on linux Fix integration test for .NET global tool on unix systems Dec 18, 2019
@MarcoRossignoli MarcoRossignoli removed the up-for-grabs Good issue for contributors label Feb 21, 2021
Copy link

This issue is stale because it has been open for 3 months with no activity.

@Bertk
Copy link
Collaborator

Bertk commented Sep 16, 2024

Standard output from test (Linux runtime ) uses a weird name for the coverage result file -'/home/bert/github/coverlet/artifacts/bin/coverlet.integration.tests/debug_net7.0/a8cbd011.json'

image
[xUnit.net 00:00:22.85]     Coverlet.Integration.Tests.DotnetGlobalTools.StandAloneThreshold [FAIL]
  Failed Coverlet.Integration.Tests.DotnetGlobalTools.StandAloneThreshold [7 s]
  Error Message:
   Assert.True() Failure
Expected: True
Actual:   False
  Stack Trace:
     at Coverlet.Integration.Tests.DotnetGlobalTools.StandAloneThreshold() in /home/bert/github/coverlet/test/coverlet.integration.tests/DotnetTool.cs:line 82
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
  Standard Output Messages:
 Hello World!

 Calculating coverage result...
   Generating report '/home/bert/github/coverlet/artifacts/bin/coverlet.integration.tests/debug_net7.0/a8cbd011\.json'
 +----------------------------------------+--------+--------+--------+
 | Module                                 | Line   | Branch | Method |
 +----------------------------------------+--------+--------+--------+
 | coverletsamplelib.integration.template | 66.66% | 100%   | 66.66% |
 +----------------------------------------+--------+--------+--------+

 +---------+--------+--------+--------+
 |         | Line   | Branch | Method |
 +---------+--------+--------+--------+
 | Total   | 66.66% | 100%   | 66.66% |
 +---------+--------+--------+--------+
 | Average | 66.66% | 100%   | 66.66% |
 +---------+--------+--------+--------+

 The minimum line coverage is below the specified 80
 The minimum method coverage is below the specified 80

@Bertk Bertk added Solved The issue is solved and can be closed and removed stale labels Sep 16, 2024
@Bertk Bertk self-assigned this Sep 22, 2024
@Bertk Bertk closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os-linux Linux OS os-mac Mac OS Solved The issue is solved and can be closed test bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

2 participants