Closed christianhelle closed 1 month ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.24%. Comparing base (
be35257
) to head (04ecf70
). Report is 12 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request introduces a new feature to generate IntelliJ tests, along with updates to the documentation and tests to support this feature. The most important changes include adding the
--generate-intellij-tests
option, updating the generator settings, and ensuring the generated code includes IntelliJ test assertions.Sample generated code using
--generate-intellij-tests
Screenshot of running test from IntelliJ
In this screenshot there are 2 requests made, one returns 200 (OK) and the other returns 404 (NotFound)
New Feature: IntelliJ Test Generation
Added the
--generate-intellij-tests
option to the command-line interface, allowing users to generate IntelliJ tests that assert whether the response status code is 200. (README.md
,src/HttpGenerator/README.md
) [1] [2]Updated
GeneratorSettings
to include theGenerateIntelliJTests
property. (src/HttpGenerator.Core/GeneratorSettings.cs
)Implemented the
GenerateIntelliJTest
method inHttpFileGenerator
to append IntelliJ test code to the generated files. (src/HttpGenerator.Core/HttpFileGenerator.cs
)Documentation Updates
--generate-intellij-tests
option. (README.md
,src/HttpGenerator/README.md
) [1] [2]Test Enhancements
src/HttpGenerator.Tests/SwaggerPetstoreTests.cs
) [1] [2] [3] [4] [5] [6] [7]Command Updates
Added support for the
GenerateIntelliJTests
setting in theGenerateCommand
class. (src/HttpGenerator/GenerateCommand.cs
)Updated the
Settings
class to include theGenerateIntelliJTests
option. (src/HttpGenerator/Settings.cs
)Miscellaneous
--generate-intellij-tests
option. (test/smoke-tests.ps1
)