abp icon indicating copy to clipboard operation
abp copied to clipboard

*.Web.Tests test project is not created using ABP CLI

Open jflaga opened this issue 3 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

I executed this command to create a new ABP app (multi-layer, MCV app)

abp new Acme.BookStore --tiered

image

But no *.Web.Tests project was generated:

image

Reproduction Steps

Run this in terminal:

abp new Acme.BookStore --tiered

Expected behavior

A test project named Acme.BookStore.Web.Tests should be created.

Actual behavior

No project named Acme.BookStore.Web.Tests was created.

Regression?

No response

Known Workarounds

Clone abpframework/abp (https://github.com/abpframework/abp).

Go to folder abp/templates/app/aspnet-core/test/MyCompanyName.MyProjectName.Web.Tests/, then copy it to your project.

Rename everything that needs to be renamed.

Version

7.3.2

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

Tiered

Operation System

Windows (Default)

Other information

No response

jflaga avatar Sep 06 '23 15:09 jflaga

.Web.Tests is designed for web instead of web.host. This is why it was removed on tiered projects.

maliming avatar Sep 07 '23 01:09 maliming

Hi @maliming , there is a .Web project in the src folder

image

jmflaga avatar Sep 07 '23 01:09 jmflaga

The Web is Web.Host actually. https://github.com/abpframework/abp/tree/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web.Host

maliming avatar Sep 07 '23 01:09 maliming