Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

dotnet test in pipeline always fails

Cherrilyn Ablay April 12, 2019

dotnet test in pipeline always fails in bitbucket. There is no problem when I run all unit tests in my local computer. There was no problem in bitbucket pipeline since last week  until this week, the test always fails.

Anyone here experiencing the same problem with command dotnet test in bitbucket pipeline?

1 answer

0 votes
Tom Bradshaw
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 15, 2019

Hi @Cherrilyn Ablay ,

Can you supply us with the specific error you're experiencing? Can you run a pipeline on a previously successful commit to check whether it fails now?

Cheers,

Tom.

Cherrilyn Ablay April 16, 2019

error NU1102: Unable to find package Unity with version (> 4.0.0)

error NU1102: - Found 77 version(s) in nuget.org [ Nearest version: 4.0.0 ]

 

That's the error I'm getting. I run the previous successful commits and it still fails.

Tom Bradshaw
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2019

Hi @Cherrilyn Ablay,

Those errors and combined with the failure of a previously successful commit suggest a docker problem. Can you debug this locally in a docker container using the instructions here https://confluence.atlassian.com/bitbucket/debug-your-pipelines-locally-with-docker-838273569.html?

Cheers,

Tom.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events