diff --git a/README.md b/README.md index a7c7153..d900926 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ This [Github Action](https://github.com/features/actions) displays test results - Java / [JUnit](https://junit.org/) - JavaScript / [JEST](https://jestjs.io/) / [Mocha](https://mochajs.org/) - Python / [pytest](https://docs.pytest.org/en/stable/) / [unittest](https://docs.python.org/3/library/unittest.html) +- Ruby / [RSpec](https://rspec.info/) - Swift / xUnit For more information see [Supported formats](#supported-formats) section. @@ -256,6 +257,20 @@ Supported testing frameworks: For more information see [dotnet test](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test#examples) +
+ dotnet-nunit + +Test execution must be configured to generate [NUnit3](https://docs.nunit.org/articles/nunit/technical-notes/usage/Test-Result-XML-Format.html) XML test results. +Install the [NUnit3TestAdapter](https://www.nuget.org/packages/NUnit3TestAdapter) package (required; it registers the `nunit` logger for `dotnet test`), then run tests with: + +`dotnet test --logger "nunit;LogFileName=test-results.xml"` + +Supported testing frameworks: +- [NUnit](https://nunit.org/) + +For more information see [dotnet test](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test#examples) +
+
flutter-json @@ -366,6 +381,27 @@ pytest --junit-xml=test-report.xml For **unittest** support, use a test runner that outputs the JUnit report format, such as [unittest-xml-reporting](https://pypi.org/project/unittest-xml-reporting/).
+
+ rspec-json + +[RSpec](https://rspec.info/) testing framework support requires the usage of JSON formatter. +You can configure RSpec to output JSON format by using the `--format json` option and redirecting to a file: + +```shell +rspec --format json --out rspec-results.json +``` + +Or configure it in `.rspec` file: +``` +--format json +--out rspec-results.json +``` + +For more information see: +- [RSpec documentation](https://rspec.info/) +- [RSpec Formatters](https://relishapp.com/rspec/rspec-core/docs/formatters) +
+
swift-xunit (Experimental) diff --git a/action.yml b/action.yml index 9b20aff..e361cb8 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,6 @@ name: Test Reporter description: | - Shows test results in GitHub UI: .NET (xUnit, NUnit, MSTest), Dart, Flutter, Java (JUnit), JavaScript (JEST, Mocha) + Shows test results in GitHub UI: .NET (xUnit, NUnit, MSTest), Dart, Flutter, Go, Java (JUnit), JavaScript (JEST, Mocha), Python (pytest, unittest), Ruby (RSpec), Swift author: Michal Dorner inputs: artifact: