Skip to content

Adding support for dotnet test and dotnet tool#105

Open
EvanTsiatsios wants to merge 3 commits intojincod:masterfrom
EvanTsiatsios:add-dotnet-test-tool-support
Open

Adding support for dotnet test and dotnet tool#105
EvanTsiatsios wants to merge 3 commits intojincod:masterfrom
EvanTsiatsios:add-dotnet-test-tool-support

Conversation

@EvanTsiatsios
Copy link
Copy Markdown

With this update you can run dotnet test and dotnet tool commands from the app.json or any other script at runtime.

This usage also aligns it with the way other buildpacks manage the exposure of the SDKs through the environment for testing or any CI/CD scripting needed through a languages toolkit.

@EvanTsiatsios EvanTsiatsios requested a review from jincod February 20, 2020 17:38
@Martin11175
Copy link
Copy Markdown

@jincod is this able to get a look or has this been addressed in another PR in the interim?

@jincod
Copy link
Copy Markdown
Owner

jincod commented Jan 15, 2021

Hello @Martin11175

Have you checked this PR #77?

You can try it using https://github.com/jincod/dotnetcore-buildpack#jbowtie-add-testpack-api

@NaveenYamparala
Copy link
Copy Markdown

@EvanTsiatsios , @jincod How do I use this feature? I am using this buildpack with v3.1 but I couldn't find the dotnet installation folder to run my 'dotnet test'. With .Net Core 2.1, "./.heroku/dotnet/dotnet test" used to work but with v3.1 its not. Let me know how to run my tests from app.json.
I tried using https://github.com/jincod/dotnetcore-buildpack#jbowtie-add-testpack-api but I am having compilation issues.

@jincod
Copy link
Copy Markdown
Owner

jincod commented Nov 19, 2021

Hello @NaveenYamparala

I've merged master to jbowtie-add-testpack-api. Could you please try and let me know does it work for you?

@NaveenYamparala
Copy link
Copy Markdown

Hi @jincod, It didn't work. It's giving me this error(MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.) when I use 'jbowtie-add-testpack-api' branch now. But I am using GitHub actions to run tests now so I am good for now. Thanks for looking into this!

@jincod
Copy link
Copy Markdown
Owner

jincod commented Nov 20, 2021

Hi @NaveenYamparala,

I'm happy to resolve the issue.

Could you please provide the full log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants