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

The report not showed #38

Open
nurirppan opened this issue May 30, 2024 · 0 comments
Open

The report not showed #38

nurirppan opened this issue May 30, 2024 · 0 comments

Comments

@nurirppan
Copy link

please help me, when i run this command. i only get this

run in terminal : swift run danger-swift pr https://github.com/x/projectname/pull/1863

xcrun xccov view --report --json /Users/devicename/Documents/work/username/ios/projectname/automation/scan/output_directory/dev.xcresult > /var/folders/6c/g8z2ltwd51g0914p485vq_2r0000gp/T/file



Danger: ✓ found only warnings, not failing the build
## Warnings
No asignee found. 🧑‍💻 You should asign someone to the PR.
-
warn succed
## Messages
These files have changed: Dangerfile.swift
my Dangerfile.swift

import Danger
import DangerSwiftCoverage
import Foundation
Coverage.xcodeBuildCoverage(.xcresultBundle("/Users/devicename/Documents/work/username/ios/foldername/automation/scan/output_directory/dev.xcresult"), 
                            minimumCoverage: 50,
                            excludedTargets: ["DangerSwiftCoverageTests.xctest"])
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
    name: "PackageName",
    defaultLocalization: "en",
    platforms: [
        .iOS(.v13),
        .macOS(.v13),
    ],
    products: [
        .library(name: "DangerDeps", type: .dynamic, targets: ["projectname"]),
    ],
    dependencies: [
        .package(url: "https://github.com/danger/swift.git", from: "3.0.0"),
        .package(url: "https://github.com/f-meloni/danger-swift-coverage", from: "1.2.1"),
    ],
    targets: [
        .target(
            name: "targetName",
            dependencies: [
                .product(name: "Danger", package: "swift"),
                .product(name: "DangerSwiftCoverage", package: "danger-swift-coverage"),
            ],
            path: "folderRootName"
        ),
        .testTarget(
            name: "targetTestsName",
            dependencies: [
                .product(name: "Danger", package: "swift"),
                .product(name: "DangerSwiftCoverage", package: "danger-swift-coverage"),
            ],
            path: "folderRootNameTests"
        ),
    ]
)

how to get and show this report
image

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

No branches or pull requests

1 participant