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

Prefer solution file name in test process command #233

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

runesoerensen
Copy link
Contributor

This changes the test launch process command, registered when targeting the test execution environment, to use only the solution file name rather than the absolute solution file path.

The motivation for this change is the same as #138 (though there's no need to change directory in this case, as we're only testing the solution file, which is currently always found in the workspace/build directory root). More specifically, it'll allow running the test process type in (currently unsupported) environments, such as local integration tests, or Heroku apps built with CNB_EXEC_ENV=test using heroku run test.

This shouldn't change the current behavior in any supported environments (including Heroku CI), which all execute the test command from the working directory containing the solution file.

This changes the test launch process command to use the solution file name rather than the absolute path.

The motivation for this change is the same as #138.

In this case, however, there's no need to also change directory, as we're only testing the solution file, which is required to be in the working directory.
@runesoerensen runesoerensen added the skip changelog Skip the check-changelog check label Mar 18, 2025
@runesoerensen runesoerensen marked this pull request as ready for review March 18, 2025 05:53
@runesoerensen runesoerensen requested a review from a team as a code owner March 18, 2025 05:53
@runesoerensen runesoerensen merged commit 57d5438 into main Mar 18, 2025
7 checks passed
@runesoerensen runesoerensen deleted the use-relative-solution-path-for-test branch March 18, 2025 17:34
runesoerensen added a commit to heroku/heroku-buildpack-dotnet that referenced this pull request Mar 19, 2025
The `dotnet test` command was changed to use only the solution file name in heroku/buildpacks-dotnet#233
heroku-linguist bot added a commit to heroku/heroku-buildpack-dotnet that referenced this pull request Mar 19, 2025
* Update DOTNET_CNB_VERSION version to 0.3.5

* Update test to reflect change in test command

The `dotnet test` command was changed to use only the solution file name in heroku/buildpacks-dotnet#233

* Add PR link to changelog entry

* Remove whitespace

---------

Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
Co-authored-by: Rune Soerensen <rsoerensen@salesforce.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Skip the check-changelog check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants