Skip CanInstantiateTemplate_WithAlias Test Due to Unimplemented Alias Feature
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Summary
The [CanInstantiateTemplate_WithAlias](https://github.com/dotnet/sdk/blob/dbb4c290cd576d30f5d84104b6035687ce85ca67/test/dotnet-new.Tests/DotnetNewInstantiateTests.cs#L38) test method is currently skipped because the alias feature is not yet implemented. This ensures the stability of the test suite and prevents failures due to unimplemented features.
### Details
The `CanInstantiateTemplate_WithAlias` test method aims to verify the functionality of template instantiation using an alias. The specific steps are as follows:
1. Create a temporary folder for the home directory and working directory.
2. Use the `DotnetNewCommand` to create a new console project with the alias `csharpconsole`.
3. Verify that the alias `csharpconsole` is successfully created with the value `console`.
4. Create a new console project without using the alias and verify its successful creation.
5. Create a new console project using the alias and verify its successful creation.
6. Compare the contents of the directories created with and without the alias to ensure they are identical.
### Error Message
```
In the current implementation, the following error occurs when executing the command:
File Name: C:\Users\AzureTest\Desktop\aa\sdk\artifacts\bin\redist\Debug\dotnet\dotnet.exe Arguments: new console --alias csharpconsole --debug:custom-hive C:\Users\AzureTest\Desktop\aa\sdk\artifacts\tmp\Debug\dotnet-new.IntegrationTests\CanInstantiateTemplate_WithAlias\Home\20240806054533116 Exit Code: 127 StdOut:
StdErr: Unrecognized command or argument ‘csharpconsole’.
```
This indicates that the current version of the `dotnet` CLI does not support the `csharpconsole` alias.
### Expected
Implement the alias feature and reenable the test.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.