Skip to content

Add Tests for PR#16 #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 17, 2025
Merged

Conversation

codecov-ai[bot]
Copy link
Contributor

@codecov-ai codecov-ai bot commented Jun 17, 2025

This PR adds tests for #16

Commits:

  • Add comprehensive migration tests for Swift Testing framework

  • Test struct-based test execution vs XCTestCase classes

  • Verify @test annotation functionality with throws

  • Test #expect() assertions replacing XCTAssert* methods

  • Validate String API simplifications (.regularExpression, .whitespacesAndNewlines)

  • Ensure code generation DSL works with new testing framework

  • Verify backward compatibility of existing functionality

  • Add assertion migration tests for Swift Testing

  • Test XCTAssertEqual to #expect(a == b) migration

  • Test XCTAssertFalse to #expect(!condition) migration

  • Validate complex normalized string comparison patterns

  • Ensure multiple assertions work correctly in single test

  • Cover all assertion patterns used in the migrated test files

  • Add code style migration tests for Swift API simplifications

  • Test String.CompareOptions.regularExpression to .regularExpression simplification

  • Test CharacterSet.whitespacesAndNewlines to .whitespacesAndNewlines simplification

  • Validate consistent indentation in migrated code

  • Test multiline string formatting changes

  • Ensure core DSL functionality is preserved through style changes

  • Add framework compatibility tests for XCTest to Swift Testing migration

  • Test struct-based organization vs class-based XCTestCase

  • Validate @test annotation with throws declarations

  • Ensure complex DSL patterns work identically with new framework

  • Test function generation, comment injection, and literal handling

  • Prevent regressions in code generation during migration

  • Verify complete feature parity between testing frameworks

@leogdion leogdion marked this pull request as ready for review June 17, 2025 14:19
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.00%. Comparing base (04dc929) to head (29b5094).
Report is 1 commits behind head on 10-swift-testing.

Additional details and impacted files
@@                 Coverage Diff                  @@
##           10-swift-testing      #17      +/-   ##
====================================================
+ Coverage             58.55%   59.00%   +0.44%     
====================================================
  Files                    33       33              
  Lines                  1344     1344              
====================================================
+ Hits                    787      793       +6     
+ Misses                  557      551       -6     
Flag Coverage Δ
spm 59.00% <ø> (+0.44%) ⬆️
swift-6.1 59.00% <ø> (+0.44%) ⬆️
swift-6.2 59.00% <ø> (+0.44%) ⬆️
ubuntu 59.00% <ø> (+0.44%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leogdion leogdion merged commit ffe9a62 into 10-swift-testing Jun 17, 2025
11 of 12 checks passed
@leogdion leogdion deleted the ai-tests-for-pr16-1750166360 branch June 17, 2025 14:21
leogdion added a commit that referenced this pull request Jun 17, 2025
* Migrated from XCTest to Swift Testing

* Add Tests for PR#16 (#17)

---------

Co-authored-by: codecov-ai[bot] <156709835+codecov-ai[bot]@users.noreply.github.com>
leogdion added a commit that referenced this pull request Jun 17, 2025
* Migrated from XCTest to Swift Testing

* Add Tests for PR#16 (#17)

---------

Co-authored-by: codecov-ai[bot] <156709835+codecov-ai[bot]@users.noreply.github.com>
leogdion added a commit that referenced this pull request Jun 17, 2025
* adding initial working test

* fixing tests

* adding new code generation

* working sample from code base

* added function

* adding parser code

* fixing ast parser

* adding more examples

* Adding comments and literals

* Adding Dev Containers (#12)

* renaming Package

* Adding Continuous Integration (#13)

* reorganized repo (#15)

* Adding Documentation (#19)

* Migrated from XCTest to Swift Testing (#16)

* Migrated from XCTest to Swift Testing

* Add Tests for PR#16 (#17)

---------

Co-authored-by: codecov-ai[bot] <156709835+codecov-ai[bot]@users.noreply.github.com>

* Adding Periphery and Fixing Linting Issues (#20)

* adding periphery and fixing issues

* disable periphery for CI

* Update README.md (#23)

---------

Co-authored-by: codecov-ai[bot] <156709835+codecov-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant