Skip to content

修复覆盖率问题 #19

Description

@BetterAndBetterII

Run make all
make setup
make[1]: Entering directory '/home/runner/work/symphony/symphony/elixir'
mix setup

  • creating /home/runner/.local/share/mise/installs/elixir/1.19.5-otp-28/.mix/archives/hex-2.3.2-otp-28
    Resolving Hex dependencies...
    Resolution completed in 0.141s
    Unchanged:
    bandit 1.10.3
    bunt 1.0.0
    cc_precompiler 0.1.11
    credo 1.7.16
    date_time_parser 1.3.0
    decimal 2.3.0
    dialyxir 1.4.7
    elixir_make 0.9.0
    erlex 0.2.8
    file_system 1.1.1
    finch 0.21.0
    fine 0.1.4
    floki 0.38.0
    hpax 1.0.3
    jason 1.4.4
    kday 1.1.0
    lazy_html 0.1.10
    mime 2.0.7
    mint 1.7.1
    nimble_options 1.1.1
    nimble_pool 1.1.0
    phoenix 1.8.4
    phoenix_html 4.3.0
    phoenix_live_view 1.1.25
    phoenix_pubsub 2.2.0
    phoenix_template 1.0.4
    plug 1.19.1
    plug_crypto 2.1.1
    req 0.5.17
    solid 1.2.2
    telemetry 1.3.0
    thousand_island 1.4.3
    websock 0.5.3
    websock_adapter 0.5.9
    yamerl 0.10.0
    yaml_elixir 2.12.0
  • creating /home/runner/.local/share/mise/installs/elixir/1.19.5-otp-28/.mix/elixir/1-19-otp-28/rebar3
    All dependencies have been fetched
    make[1]: Leaving directory '/home/runner/work/symphony/symphony/elixir'
    make build
    make[1]: Entering directory '/home/runner/work/symphony/symphony/elixir'
    mix build
    Compiling 25 files (.ex)
    Generated symphony_elixir app
    Generated escript bin/symphony with MIX_ENV=dev
    make[1]: Leaving directory '/home/runner/work/symphony/symphony/elixir'
    make fmt-check
    make[1]: Entering directory '/home/runner/work/symphony/symphony/elixir'
    mix format --check-formatted
    make[1]: Leaving directory '/home/runner/work/symphony/symphony/elixir'
    make lint
    make[1]: Entering directory '/home/runner/work/symphony/symphony/elixir'
    mix lint
    specs.check: all public functions have @SPEC or exemption
    Checking 63 source files (this might take a while) ...

Please report incorrect results: https://github.com/rrrene/credo/issues

Analysis took 2.3 seconds (0.08s to load, 2.2s running 69 checks on 63 files)
1294 mods/funs, found no issues.

Use mix credo explain to explain issues, mix credo --help for options.
make[1]: Leaving directory '/home/runner/work/symphony/symphony/elixir'
make coverage
make[1]: Entering directory '/home/runner/work/symphony/symphony/elixir'
mix test --cover
Compiling 41 files (.ex)
Generated symphony_elixir app
Cover compiling modules ...
Running ExUnit with seed: 431015, max_cases: 8

.......................................................................................................................................................................................................................................
Finished in 10.4 seconds (1.4s async, 9.0s sync)
231 tests, 0 failures

Generating cover results ...

Percentage Module
50.00% SymphonyElixir.Version
100.00% Mix.Tasks.PrBody.Check
100.00% Mix.Tasks.Specs.Check
100.00% Mix.Tasks.Workspace.BeforeRemove
100.00% SymphonyElixir
100.00% SymphonyElixir.Application
100.00% SymphonyElixir.Config.GitHubAuth
100.00% SymphonyElixir.DefaultWorkflow.Bootstrap.GuidedWorkflow
100.00% SymphonyElixir.DefaultWorkflow.Bootstrap.Owner
100.00% SymphonyElixir.DefaultWorkflow.Bootstrap.Project
100.00% SymphonyElixir.Linear.Adapter
100.00% SymphonyElixir.PromptBuilder
100.00% SymphonyElixir.Tracker
100.00% SymphonyElixir.Tracker.Issue
100.00% SymphonyElixir.Tracker.Memory
100.00% SymphonyElixir.Tracker.StateCount
100.00% SymphonyElixir.Workflow
100.00% SymphonyElixir.WorkflowStore
100.00% SymphonyElixir.WorkflowStore.State
100.00% SymphonyElixirWeb.ObservabilityPubSub
------------ ---------------------------------------------------------
99.49% Total

Coverage test failed, threshold not met:

Coverage:   99.49%
Threshold: 100.00%

Generated HTML coverage results in "cover" directory
make[1]: *** [Makefile:27: coverage] Error 3
make[1]: Leaving directory '/home/runner/work/symphony/symphony/elixir'
make: *** [Makefile:41: ci] Error 2
Error: Process completed with exit code 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions