Skip to content
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

add test target to package score #2588

Merged
merged 7 commits into from
Sep 20, 2023
Merged

Conversation

cyndichin
Copy link
Collaborator

Fixes issue #317

Discussed with @daveverwer

@cla-bot cla-bot bot added the cla-signed label Aug 29, 2023
@cyndichin cyndichin force-pushed the add-test-target-count-to-score branch 2 times, most recently from 9092d39 to e283390 Compare August 29, 2023 14:05
@cyndichin cyndichin marked this pull request as draft August 30, 2023 15:02
@cyndichin cyndichin force-pushed the add-test-target-count-to-score branch 2 times, most recently from 0640322 to 7783278 Compare September 5, 2023 12:56
@cyndichin cyndichin force-pushed the add-test-target-count-to-score branch 2 times, most recently from 3c058a9 to 3537f01 Compare September 10, 2023 22:48
@cyndichin cyndichin marked this pull request as ready for review September 10, 2023 22:51
Copy link
Member

@daveverwer daveverwer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this @cyndichin!

Sources/App/Core/Score.swift Outdated Show resolved Hide resolved
Comment on lines 174 to 193
XCTAssertEqual(Score.compute(.init(licenseKind: .compatibleWithAppStore,
releaseCount: 20,
likeCount: 20_000,
isArchived: false,
numberOfDependencies: 2,
lastActivityAt: Current.date().adding(days: -10),
hasDocumentation: false,
numberOfContributors: 0,
hasTestTargets: false)),
107)
XCTAssertEqual(Score.compute(.init(licenseKind: .compatibleWithAppStore,
releaseCount: 20,
likeCount: 20_000,
isArchived: false,
numberOfDependencies: 2,
lastActivityAt: Current.date().adding(days: -10),
hasDocumentation: false,
numberOfContributors: 0,
hasTestTargets: true)),
122)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests will need fixing up to match the new scoring.

daveverwer and others added 3 commits September 19, 2023 13:53
update score from `15` to `5`

Co-authored-by: Dave Verwer <dave.verwer@gmail.com>
@cyndichin cyndichin merged commit 519e2fd into main Sep 20, 2023
4 of 5 checks passed
@cyndichin cyndichin deleted the add-test-target-count-to-score branch September 20, 2023 01:21
@daveverwer
Copy link
Member

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants