You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're contemplating moving our existing .NET projects all into a single monorepo using nx; great work so far with nx-dotnet...!
For a given app, we might have multiple test projects - for example, we might have a test project which contains only unit tests, another which contains integration tests and another which contains acceptance tests:
MyApp.Tests.Unit
MyApp.Tests.Integration
MyApp.Tests.Acceptance
I notice that the @nx-dotnet/core:test generator is hardcoded to create a test project named <app-name>-test - attempting to create another test project for the app fails due to the name already existing.
Could the generator be updated to allow the user to specify/override the "-test" suffix?
Note: admittedly, we could use the xunit Trait attribute to handle this scenario, but I would still prefer not to be constrained by a 1:1 ratio of app to test projects.
The text was updated successfully, but these errors were encountered:
This should be a pretty easy addition, I'd suggest adding --suffix to the test project generator's schema, default value is test. Add it as a parameter to the generate-test-project utility, default value in function definition is -test, then update places its hard coded.
I'll leave this up for grabs, as it will be a hot second before I can get to it.
# [1.1.0](v1.0.2...v1.1.0) (2021-08-10)
### Features
* **core:** added support for test project name suffix ([#78](#78)) ([9f8f03c](9f8f03c)), closes [#77](#77)
Aug 10, 2021, 4:29 PM
We're contemplating moving our existing .NET projects all into a single monorepo using nx; great work so far with nx-dotnet...!
For a given app, we might have multiple test projects - for example, we might have a test project which contains only unit tests, another which contains integration tests and another which contains acceptance tests:
I notice that the @nx-dotnet/core:test generator is hardcoded to create a test project named
<app-name>-test
- attempting to create another test project for the app fails due to the name already existing.Could the generator be updated to allow the user to specify/override the "-test" suffix?
Note: admittedly, we could use the xunit
Trait
attribute to handle this scenario, but I would still prefer not to be constrained by a 1:1 ratio of app to test projects.The text was updated successfully, but these errors were encountered: