Skip to content

Commit

Permalink
Merge pull request #47 from dorny/improvements-and-fixes
Browse files Browse the repository at this point in the history
Improvements and fixes for v1
  • Loading branch information
dorny authored Jan 31, 2021
2 parents 1a9ca69 + 60b35d6 commit 10ba394
Show file tree
Hide file tree
Showing 32 changed files with 56,315 additions and 1,405 deletions.
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
# Name of the Check Run which will be created
name: ''

# Path to test report
# Coma separated list of paths to test reports
# Supports wildcards via [fast-glob](https://github.com/mrmlnc/fast-glob)
# Path may match multiple result files of same format
# All matched result files must be of same format
path: ''

# Format of test report. Supported options:
Expand All @@ -61,8 +61,20 @@ jobs:
# jest-junit
reporter: ''

# Enables code annotations with error message and stack trace captured during test execution
annotations: 'true'
# Limits which test suites are listed:
# all
# failed
list-suites: 'all'

# Limits which test cases are listed:
# all
# failed
# none
list-tests: 'all'

# Limits number of created annotations with error message and stack trace captured during test execution.
# Must be less or equal to 50.
max-annotations: '10'

# Set action as failed if test report contain any failed test
fail-on-error: 'true'
Expand Down Expand Up @@ -109,7 +121,7 @@ Or you can configure TRX test output in `*.csproj` or `Directory.Build.props`:
```xml
<PropertyGroup>
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
<VSTestResultsDirectory>$(MSBuildThisFileDirectory)/reports</VSTestResultsDirectory>
<VSTestResultsDirectory>$(MSBuildThisFileDirectory)/TestResults/$(TargetFramework)</VSTestResultsDirectory>
</PropertyGroup>
```

Expand Down
72 changes: 32 additions & 40 deletions __tests__/__outputs__/dart-json.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,32 @@
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%201%20skipped%2C%204%20failed-critical)

### fixtures/dart-json.json

**6** tests were completed in **3.760s** with **1** passed, **1** skipped and **4** failed.

| Result | Suite | Tests | Time | Passed ✔️ | Skipped ✖️ | Failed ❌ |
| :---: | :--- | ---: | ---: | ---: | ---: | ---: |
|| [test\main_test.dart](#ts-0-test-maintest-dart) | 4 | 74ms | 1 | 0 | 3 |
|| [test\second_test.dart](#ts-1-test-secondtest-dart) | 2 | 51ms | 0 | 1 | 1 |

# Test Suites

## <a id="user-content-ts-0-test-maintest-dart" href="#ts-0-test-maintest-dart">test\main_test.dart</a> ❌

### Test 1

| Result | Test | Time |
| :---: | :--- | ---: |
| ✔️ | Test 1 Passing test | 36ms |

### Test 1 Test 1.1

| Result | Test | Time |
| :---: | :--- | ---: |
|| Test 1 Test 1.1 Failing test | 20ms |
|| Test 1 Test 1.1 Exception in target unit | 6ms |

### Test 2

| Result | Test | Time |
| :---: | :--- | ---: |
|| Test 2 Exception in test | 12ms |

## <a id="user-content-ts-1-test-secondtest-dart" href="#ts-1-test-secondtest-dart">test\second_test.dart</a> ❌

| Result | Test | Time |
| :---: | :--- | ---: |
|| Timeout test | 37ms |
| ✖️ | Skipped test | 14ms |
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed%2C%201%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/dart-json.json</a> ❌
**6** tests were completed in **3.760s** with **1** passed, **4** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|[test\main_test.dart](#r0s0)|1✔️|3❌||74ms|
|[test\second_test.dart](#r0s1)||1❌|1✖️|51ms|
### <a id="user-content-r0s0" href="#r0s0">test\main_test.dart</a> ❌
**4** tests were completed in **74ms** with **1** passed, **3** failed and **0** skipped.

**Test 1**
|Result|Test|Time|
|:---:|:---|---:|
|✔️|Test 1 Passing test|36ms|

**Test 1 Test 1.1**
|Result|Test|Time|
|:---:|:---|---:|
||Test 1 Test 1.1 Failing test|20ms|
||Test 1 Test 1.1 Exception in target unit|6ms|

**Test 2**
|Result|Test|Time|
|:---:|:---|---:|
||Test 2 Exception in test|12ms|
### <a id="user-content-r0s1" href="#r0s1">test\second_test.dart</a> ❌
**2** tests were completed in **51ms** with **0** passed, **1** failed and **1** skipped.

|Result|Test|Time|
|:---:|:---|---:|
||Timeout test|37ms|
|✖️|Skipped test|14ms|
39 changes: 17 additions & 22 deletions __tests__/__outputs__/dotnet-trx.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
![Tests failed](https://img.shields.io/badge/tests-3%20passed%2C%201%20skipped%2C%203%20failed-critical)
![Tests failed](https://img.shields.io/badge/tests-3%20passed%2C%203%20failed%2C%201%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/dotnet-trx.trx</a> ❌
**7** tests were completed in **1.061s** with **3** passed, **3** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|[DotnetTests.XUnitTests.CalculatorTests](#r0s0)|3✔️|3❌|1✖️|110ms|
### <a id="user-content-r0s0" href="#r0s0">DotnetTests.XUnitTests.CalculatorTests</a> ❌
**7** tests were completed in **110ms** with **3** passed, **3** failed and **1** skipped.

### fixtures/dotnet-trx.trx

**7** tests were completed in **1.061s** with **3** passed, **1** skipped and **3** failed.

| Result | Suite | Tests | Time | Passed ✔️ | Skipped ✖️ | Failed ❌ |
| :---: | :--- | ---: | ---: | ---: | ---: | ---: |
|| [DotnetTests.XUnitTests.CalculatorTests](#ts-0-DotnetTests-XUnitTests-CalculatorTests) | 7 | 109.5761ms | 3 | 1 | 3 |

# Test Suites

## <a id="user-content-ts-0-DotnetTests-XUnitTests-CalculatorTests" href="#ts-0-DotnetTests-XUnitTests-CalculatorTests">DotnetTests.XUnitTests.CalculatorTests</a> ❌

| Result | Test | Time |
| :---: | :--- | ---: |
|| Exception_In_TargetTest | 0.4975ms |
|| Exception_In_Test | 2.2728ms |
|| Failing_Test | 3.2953ms |
| ✔️ | Passing_Test | 0.1254ms |
| ✔️ | Passing_Test_With_Name | 0.103ms |
| ✖️ | Skipped_Test | 1ms |
| ✔️ | Timeout_Test | 102.2821ms |
|Result|Test|Time|
|:---:|:---|---:|
||Exception_In_TargetTest|0ms|
||Exception_In_Test|2ms|
||Failing_Test|3ms|
|✔️|Passing_Test|0ms|
|✔️|Passing_Test_With_Name|0ms|
|✖️|Skipped_Test|1ms|
|✔️|Timeout_Test|102ms|
67 changes: 67 additions & 0 deletions __tests__/__outputs__/fluent-validation-test-results.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
![Tests passed successfully](https://img.shields.io/badge/tests-803%20passed%2C%201%20skipped-success)
## <a id="user-content-r0" href="#r0">fixtures/external/FluentValidation.Tests.trx</a> ✔️
**804** tests were completed in **4.480s** with **803** passed, **0** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|FluentValidation.Tests.AbstractValidatorTester|35✔️|||12ms|
|FluentValidation.Tests.AccessorCacheTests|4✔️||1✖️|4ms|
|FluentValidation.Tests.AssemblyScannerTester|2✔️|||2ms|
|FluentValidation.Tests.CascadingFailuresTester|38✔️|||23ms|
|FluentValidation.Tests.ChainedValidationTester|13✔️|||6ms|
|FluentValidation.Tests.ChainingValidatorsTester|3✔️|||1ms|
|FluentValidation.Tests.ChildRulesTests|2✔️|||7ms|
|FluentValidation.Tests.CollectionValidatorWithParentTests|16✔️|||13ms|
|FluentValidation.Tests.ComplexValidationTester|17✔️|||26ms|
|FluentValidation.Tests.ConditionTests|18✔️|||9ms|
|FluentValidation.Tests.CreditCardValidatorTests|2✔️|||2ms|
|FluentValidation.Tests.CustomFailureActionTester|3✔️|||1ms|
|FluentValidation.Tests.CustomMessageFormatTester|6✔️|||3ms|
|FluentValidation.Tests.CustomValidatorTester|10✔️|||6ms|
|FluentValidation.Tests.DefaultValidatorExtensionTester|30✔️|||38ms|
|FluentValidation.Tests.EmailValidatorTests|36✔️|||18ms|
|FluentValidation.Tests.EmptyTester|9✔️|||5ms|
|FluentValidation.Tests.EnumValidatorTests|12✔️|||24ms|
|FluentValidation.Tests.EqualValidatorTests|10✔️|||3ms|
|FluentValidation.Tests.ExactLengthValidatorTester|6✔️|||2ms|
|FluentValidation.Tests.ExclusiveBetweenValidatorTests|19✔️|||6ms|
|FluentValidation.Tests.ExtensionTester|4✔️|||1ms|
|FluentValidation.Tests.ForEachRuleTests|34✔️|||47ms|
|FluentValidation.Tests.GreaterThanOrEqualToValidatorTester|14✔️|||5ms|
|FluentValidation.Tests.GreaterThanValidatorTester|13✔️|||4ms|
|FluentValidation.Tests.InclusiveBetweenValidatorTests|18✔️|||4ms|
|FluentValidation.Tests.InheritanceValidatorTest|11✔️|||18ms|
|FluentValidation.Tests.InlineValidatorTester|1✔️|||2ms|
|FluentValidation.Tests.LanguageManagerTests|21✔️|||28ms|
|FluentValidation.Tests.LengthValidatorTests|16✔️|||17ms|
|FluentValidation.Tests.LessThanOrEqualToValidatorTester|13✔️|||4ms|
|FluentValidation.Tests.LessThanValidatorTester|16✔️|||6ms|
|FluentValidation.Tests.LocalisedMessagesTester|6✔️|||3ms|
|FluentValidation.Tests.LocalisedNameTester|2✔️|||1ms|
|FluentValidation.Tests.MemberAccessorTests|9✔️|||5ms|
|FluentValidation.Tests.MessageFormatterTests|10✔️|||2ms|
|FluentValidation.Tests.ModelLevelValidatorTests|2✔️|||1ms|
|FluentValidation.Tests.NameResolutionPluggabilityTester|3✔️|||2ms|
|FluentValidation.Tests.NotEmptyTester|10✔️|||7ms|
|FluentValidation.Tests.NotEqualValidatorTests|11✔️|||7ms|
|FluentValidation.Tests.NotNullTester|5✔️|||1ms|
|FluentValidation.Tests.NullTester|5✔️|||2ms|
|FluentValidation.Tests.OnFailureTests|10✔️|||8ms|
|FluentValidation.Tests.PredicateValidatorTester|5✔️|||2ms|
|FluentValidation.Tests.PropertyChainTests|7✔️|||1ms|
|FluentValidation.Tests.RegularExpressionValidatorTests|15✔️|||6ms|
|FluentValidation.Tests.RuleBuilderTests|29✔️|||96ms|
|FluentValidation.Tests.RuleDependencyTests|14✔️|||2.511s|
|FluentValidation.Tests.RulesetTests|21✔️|||14ms|
|FluentValidation.Tests.ScalePrecisionValidatorTests|6✔️|||4ms|
|FluentValidation.Tests.SharedConditionTests|42✔️|||42ms|
|FluentValidation.Tests.StandalonePropertyValidationTester|1✔️|||0ms|
|FluentValidation.Tests.StringEnumValidatorTests|10✔️|||5ms|
|FluentValidation.Tests.TrackingCollectionTests|3✔️|||2ms|
|FluentValidation.Tests.TransformTests|4✔️|||3ms|
|FluentValidation.Tests.UserSeverityTester|7✔️|||3ms|
|FluentValidation.Tests.UserStateTester|4✔️|||3ms|
|FluentValidation.Tests.ValidateAndThrowTester|14✔️|||25ms|
|FluentValidation.Tests.ValidationResultTests|8✔️|||8ms|
|FluentValidation.Tests.ValidatorDescriptorTester|5✔️|||1ms|
|FluentValidation.Tests.ValidatorSelectorTests|10✔️|||9ms|
|FluentValidation.Tests.ValidatorTesterTester|73✔️|||74ms|
72 changes: 32 additions & 40 deletions __tests__/__outputs__/jest-junit.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,32 @@
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%201%20skipped%2C%204%20failed-critical)

### fixtures/jest-junit.xml

**6** tests were completed in **1.360s** with **1** passed, **1** skipped and **4** failed.

| Result | Suite | Tests | Time | Passed ✔️ | Skipped ✖️ | Failed ❌ |
| :---: | :--- | ---: | ---: | ---: | ---: | ---: |
|| [__tests__\main.test.js](#ts-0-tests-main-test-js) | 4 | 486ms | 1 | 0 | 3 |
|| [__tests__\second.test.js](#ts-1-tests-second-test-js) | 2 | 82ms | 0 | 1 | 1 |

# Test Suites

## <a id="user-content-ts-0-tests-main-test-js" href="#ts-0-tests-main-test-js">__tests__\main.test.js</a> ❌

### Test 1

| Result | Test | Time |
| :---: | :--- | ---: |
| ✔️ | Passing test | 1ms |

### Test 1 › Test 1.1

| Result | Test | Time |
| :---: | :--- | ---: |
|| Failing test | 2ms |
|| Exception in target unit | 0ms |

### Test 2

| Result | Test | Time |
| :---: | :--- | ---: |
|| Exception in test | 0ms |

## <a id="user-content-ts-1-tests-second-test-js" href="#ts-1-tests-second-test-js">__tests__\second.test.js</a> ❌

| Result | Test | Time |
| :---: | :--- | ---: |
|| Timeout test | 4ms |
| ✖️ | Skipped test | 0ms |
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed%2C%201%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/jest-junit.xml</a> ❌
**6** tests were completed in **1.360s** with **1** passed, **4** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|[__tests__\main.test.js](#r0s0)|1✔️|3❌||486ms|
|[__tests__\second.test.js](#r0s1)||1❌|1✖️|82ms|
### <a id="user-content-r0s0" href="#r0s0">__tests__\main.test.js</a> ❌
**4** tests were completed in **486ms** with **1** passed, **3** failed and **0** skipped.

**Test 1**
|Result|Test|Time|
|:---:|:---|---:|
|✔️|Passing test|1ms|

**Test 1 › Test 1.1**
|Result|Test|Time|
|:---:|:---|---:|
||Failing test|2ms|
||Exception in target unit|0ms|

**Test 2**
|Result|Test|Time|
|:---:|:---|---:|
||Exception in test|0ms|
### <a id="user-content-r0s1" href="#r0s1">__tests__\second.test.js</a> ❌
**2** tests were completed in **82ms** with **0** passed, **1** failed and **1** skipped.

|Result|Test|Time|
|:---:|:---|---:|
||Timeout test|4ms|
|✖️|Skipped test|0ms|
Loading

0 comments on commit 10ba394

Please sign in to comment.