!2154 doc(#I4KCDS): add code coverage badge

* doc: 更新英文文档
* doc: 更新文档
* doc: 更新文档
* revert: 移除多语言
* test: 更正单元测试
* revert: 增加多语言测试
* test: 更新结果文件
* test: 移除多语言测试
* test: 更新项目路径
* test: 更改命令
* chore: 增加代码覆盖率
pull/2155/MERGE
Argo 3 years ago
parent f0bcb12f12
commit db701da344

@ -30,3 +30,14 @@ jobs:
run: |
dotnet restore src/BootstrapBlazor --no-cache
dotnet build src/BootstrapBlazor
- name: Test
run: |
dotnet test test/UnitTest -c Release -f net6.0 --collect:"XPlat Code Coverage" -r ./coverage
#dotnet test test/UnitTest.Localization -c Release -f net6.0 --collect:"XPlat Code Coverage" -r ./coverage
- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/

@ -113,7 +113,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "middleware", "middleware",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazor.Middleware", "src\Middleware\BootstrapBlazor.Middleware\BootstrapBlazor.Middleware.csproj", "{59B49D4C-05FB-4E51-AB40-9498ADC71DD0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTest.Localization", "test\UnitTest.Localization\UnitTest.Localization.csproj", "{99B55645-0E89-43F8-938F-2304B486AD2A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTest.Localization", "test\UnitTest.Localization\UnitTest.Localization.csproj", "{99B55645-0E89-43F8-938F-2304B486AD2A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

@ -10,7 +10,7 @@
[![Github](https://img.shields.io/github/license/argozhang/bootstrapblazor.svg?logo=git&logoColor=red)](https://github.com/ArgoZhang/BootstrapBlazor/blob/main/LICENSE)
[![Repo Size](https://img.shields.io/github/repo-size/ArgoZhang/BootstrapBlazor.svg?logo=github&logoColor=green&label=repo)](https://github.com/ArgoZhang/BootstrapBlazor)
[![Commit Date](https://img.shields.io/github/last-commit/ArgoZhang/BootstrapBlazor/main.svg?logo=github&logoColor=green&label=commit)](https://github.com/ArgoZhang/BootstrapBlazor)
[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/master/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor)
</div>
---

@ -9,9 +9,8 @@
[![Github](https://img.shields.io/github/license/argozhang/bootstrapblazor.svg?logo=git&logoColor=red)](https://github.com/ArgoZhang/BootstrapBlazor/blob/main/LICENSE)
[![Repo Size](https://img.shields.io/github/repo-size/ArgoZhang/BootstrapBlazor.svg?logo=github&logoColor=green&label=repo)](https://github.com/ArgoZhang/BootstrapBlazor)
[![Commit Date](https://img.shields.io/github/last-commit/ArgoZhang/BootstrapBlazor/main.svg?logo=github&logoColor=green&label=commit)](https://github.com/ArgoZhang/BootstrapBlazor)
[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/master/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor)
</div>
---
<a href="README.md">English</a> | <span>中文</span>

@ -34,7 +34,7 @@ namespace UnitTest.Localization
services.AddLocalization(option => option.ResourcesPath = "Resources");
services.AddBootstrapBlazor(localizationAction: options =>
{
options.ResourceManagerStringLocalizerType = typeof(BootstrapBlazorEnTestHost);
options.ResourceManagerStringLocalizerType = typeof(BootstrapBlazorZhTestHost);
});
}

@ -45,7 +45,7 @@ namespace UnitTest.Core
ConfigureConfigration(Instance.Services);
// 渲染 BootstrapBlazorRoot 组件 激活 ICacheManager 接口
Instance.RenderTree.Add<BootstrapBlazorRoot>();
Instance.Services.GetRequiredService<ICacheManager>();
}
protected virtual void ConfigureServices(IServiceCollection services)

Loading…
Cancel
Save