From 2ae2c68fc9173e3de79d69d529fb4235b1fc572d Mon Sep 17 00:00:00 2001 From: sokari Date: Sat, 28 Dec 2024 12:36:03 +0100 Subject: [PATCH] feat: update GitHub PR with Report info --- apps/action/action.yaml | 4 ++-- apps/cli/coverage/coverage-final.json | 18 +++++++++--------- apps/cli/src/commands/deploy.command.ts | 15 ++++++++++++--- apps/cli/src/commands/version.command.ts | 2 +- .../src/features/messaging/github-notifier.ts | 15 +++++++++------ apps/cli/src/interfaces/args.interface.ts | 6 +++++- apps/cli/src/services/github.service.ts | 9 ++++----- apps/cli/test/report-builder.test.ts | 2 +- 8 files changed, 43 insertions(+), 28 deletions(-) diff --git a/apps/action/action.yaml b/apps/action/action.yaml index 685d401..301ecf2 100644 --- a/apps/action/action.yaml +++ b/apps/action/action.yaml @@ -40,8 +40,8 @@ inputs: description: 'The storage bucket path to back up Allure results and history files' required: false update_pr: - description: 'Update pull request with test report url and info' - default: 'false' + description: 'Add report info (url and status) as pull request comment or actions summary' + default: 'summary' outputs: report_url: diff --git a/apps/cli/coverage/coverage-final.json b/apps/cli/coverage/coverage-final.json index 43fb521..6d20b85 100644 --- a/apps/cli/coverage/coverage-final.json +++ b/apps/cli/coverage/coverage-final.json @@ -1,10 +1,10 @@ -{"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/features/allure.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/features/allure.ts","statementMap":{"0":{"start":{"line":17,"column":8},"end":{"line":17,"column":null}},"1":{"start":{"line":18,"column":8},"end":{"line":18,"column":25}},"2":{"start":{"line":22,"column":8},"end":{"line":22,"column":59}},"3":{"start":{"line":23,"column":28},"end":{"line":23,"column":116}},"4":{"start":{"line":24,"column":8},"end":{"line":26,"column":null}},"5":{"start":{"line":25,"column":12},"end":{"line":25,"column":60}},"6":{"start":{"line":30,"column":29},"end":{"line":30,"column":94}},"7":{"start":{"line":31,"column":8},"end":{"line":31,"column":105}},"8":{"start":{"line":32,"column":24},"end":{"line":38,"column":null}},"9":{"start":{"line":39,"column":28},"end":{"line":39,"column":71}},"10":{"start":{"line":40,"column":8},"end":{"line":42,"column":null}},"11":{"start":{"line":41,"column":12},"end":{"line":41,"column":64}},"12":{"start":{"line":43,"column":8},"end":{"line":43,"column":37}},"13":{"start":{"line":49,"column":24},"end":{"line":52,"column":10}},"14":{"start":{"line":54,"column":22},"end":{"line":54,"column":65}},"15":{"start":{"line":55,"column":29},"end":{"line":55,"column":31}},"16":{"start":{"line":57,"column":27},"end":{"line":57,"column":28}},"17":{"start":{"line":58,"column":8},"end":{"line":71,"column":null}},"18":{"start":{"line":60,"column":12},"end":{"line":60,"column":41}},"19":{"start":{"line":60,"column":32},"end":{"line":60,"column":41}},"20":{"start":{"line":62,"column":12},"end":{"line":69,"column":16}},"21":{"start":{"line":63,"column":16},"end":{"line":68,"column":null}},"22":{"start":{"line":64,"column":20},"end":{"line":64,"column":46}},"23":{"start":{"line":65,"column":20},"end":{"line":65,"column":35}},"24":{"start":{"line":67,"column":20},"end":{"line":67,"column":75}},"25":{"start":{"line":74,"column":8},"end":{"line":74,"column":40}},"26":{"start":{"line":75,"column":8},"end":{"line":75,"column":54}},"27":{"start":{"line":79,"column":27},"end":{"line":79,"column":71}},"28":{"start":{"line":80,"column":28},"end":{"line":80,"column":80}},"29":{"start":{"line":81,"column":8},"end":{"line":81,"column":84}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":4},"end":{"line":16,"column":16}},"loc":{"start":{"line":16,"column":90},"end":{"line":19,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":21,"column":4},"end":{"line":21,"column":9}},"loc":{"start":{"line":21,"column":26},"end":{"line":27,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":29,"column":4},"end":{"line":29,"column":9}},"loc":{"start":{"line":29,"column":42},"end":{"line":44,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":47,"column":4},"end":{"line":47,"column":9}},"loc":{"start":{"line":47,"column":29},"end":{"line":76,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":62,"column":36},"end":{"line":62,"column":41}},"loc":{"start":{"line":62,"column":47},"end":{"line":69,"column":13}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":78,"column":12},"end":{"line":78,"column":17}},"loc":{"start":{"line":78,"column":39},"end":{"line":82,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":28},"end":{"line":17,"column":63}},"type":"binary-expr","locations":[{"start":{"line":17,"column":28},"end":{"line":17,"column":40}},{"start":{"line":17,"column":44},"end":{"line":17,"column":63}}]},"1":{"loc":{"start":{"line":21,"column":15},"end":{"line":21,"column":26}},"type":"default-arg","locations":[{"start":{"line":21,"column":22},"end":{"line":21,"column":26}}]},"2":{"loc":{"start":{"line":24,"column":8},"end":{"line":26,"column":null}},"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":26,"column":null}}]},"3":{"loc":{"start":{"line":40,"column":8},"end":{"line":42,"column":null}},"type":"if","locations":[{"start":{"line":40,"column":8},"end":{"line":42,"column":null}}]},"4":{"loc":{"start":{"line":60,"column":12},"end":{"line":60,"column":41}},"type":"if","locations":[{"start":{"line":60,"column":12},"end":{"line":60,"column":41}}]}},"s":{"0":4,"1":4,"2":1,"3":1,"4":1,"5":0,"6":2,"7":2,"8":2,"9":2,"10":2,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":2,"19":0,"20":2,"21":2,"22":2,"23":2,"24":0,"25":1,"26":1,"27":2,"28":2,"29":2},"f":{"0":4,"1":1,"2":2,"3":1,"4":2,"5":2},"b":{"0":[4,0],"1":[1],"2":[0],"3":[1],"4":[0]}} -,"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/features/storage.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/features/storage.ts","statementMap":{"0":{"start":{"line":19,"column":8},"end":{"line":19,"column":33}},"1":{"start":{"line":20,"column":8},"end":{"line":20,"column":25}},"2":{"start":{"line":21,"column":8},"end":{"line":21,"column":33}},"3":{"start":{"line":27,"column":8},"end":{"line":30,"column":null}},"4":{"start":{"line":31,"column":31},"end":{"line":34,"column":10}},"5":{"start":{"line":35,"column":22},"end":{"line":35,"column":65}},"6":{"start":{"line":36,"column":30},"end":{"line":36,"column":32}},"7":{"start":{"line":37,"column":8},"end":{"line":45,"column":null}},"8":{"start":{"line":38,"column":12},"end":{"line":44,"column":null}},"9":{"start":{"line":39,"column":16},"end":{"line":43,"column":null}},"10":{"start":{"line":40,"column":20},"end":{"line":40,"column":91}},"11":{"start":{"line":42,"column":20},"end":{"line":42,"column":64}},"12":{"start":{"line":46,"column":8},"end":{"line":46,"column":41}},"13":{"start":{"line":53,"column":74},"end":{"line":53,"column":76}},"14":{"start":{"line":54,"column":31},"end":{"line":54,"column":33}},"15":{"start":{"line":55,"column":8},"end":{"line":58,"column":null}},"16":{"start":{"line":56,"column":12},"end":{"line":56,"column":null}},"17":{"start":{"line":57,"column":12},"end":{"line":57,"column":null}},"18":{"start":{"line":59,"column":8},"end":{"line":63,"column":null}},"19":{"start":{"line":60,"column":34},"end":{"line":60,"column":68}},"20":{"start":{"line":61,"column":12},"end":{"line":61,"column":null}},"21":{"start":{"line":62,"column":12},"end":{"line":62,"column":null}},"22":{"start":{"line":64,"column":31},"end":{"line":64,"column":101}},"23":{"start":{"line":65,"column":8},"end":{"line":65,"column":null}},"24":{"start":{"line":66,"column":37},"end":{"line":66,"column":101}},"25":{"start":{"line":68,"column":8},"end":{"line":71,"column":null}},"26":{"start":{"line":75,"column":8},"end":{"line":106,"column":11}},"27":{"start":{"line":76,"column":12},"end":{"line":105,"column":19}},"28":{"start":{"line":79,"column":37},"end":{"line":79,"column":69}},"29":{"start":{"line":80,"column":20},"end":{"line":86,"column":null}},"30":{"start":{"line":82,"column":24},"end":{"line":85,"column":null}},"31":{"start":{"line":83,"column":28},"end":{"line":83,"column":46}},"32":{"start":{"line":84,"column":28},"end":{"line":84,"column":35}},"33":{"start":{"line":87,"column":20},"end":{"line":92,"column":null}},"34":{"start":{"line":88,"column":24},"end":{"line":91,"column":null}},"35":{"start":{"line":89,"column":28},"end":{"line":89,"column":46}},"36":{"start":{"line":90,"column":28},"end":{"line":90,"column":35}},"37":{"start":{"line":93,"column":20},"end":{"line":97,"column":null}},"38":{"start":{"line":94,"column":24},"end":{"line":94,"column":71}},"39":{"start":{"line":96,"column":24},"end":{"line":96,"column":42}},"40":{"start":{"line":100,"column":20},"end":{"line":100,"column":34}},"41":{"start":{"line":103,"column":20},"end":{"line":103,"column":53}},"42":{"start":{"line":104,"column":20},"end":{"line":104,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":18,"column":4},"end":{"line":18,"column":16}},"loc":{"start":{"line":18,"column":62},"end":{"line":22,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":25,"column":11},"end":{"line":25,"column":16}},"loc":{"start":{"line":25,"column":38},"end":{"line":47,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":38,"column":37},"end":{"line":38,"column":42}},"loc":{"start":{"line":38,"column":48},"end":{"line":44,"column":13}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":52,"column":11},"end":{"line":52,"column":16}},"loc":{"start":{"line":52,"column":32},"end":{"line":72,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":74,"column":11},"end":{"line":74,"column":16}},"loc":{"start":{"line":74,"column":73},"end":{"line":107,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":75,"column":33},"end":{"line":75,"column":34}},"loc":{"start":{"line":75,"column":53},"end":{"line":106,"column":9}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":78,"column":29},"end":{"line":78,"column":34}},"loc":{"start":{"line":78,"column":52},"end":{"line":98,"column":17}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":99,"column":29},"end":{"line":99,"column":32}},"loc":{"start":{"line":99,"column":34},"end":{"line":101,"column":17}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":102,"column":29},"end":{"line":102,"column":30}},"loc":{"start":{"line":102,"column":37},"end":{"line":105,"column":17}}}},"branchMap":{"0":{"loc":{"start":{"line":32,"column":20},"end":{"line":32,"column":42}},"type":"binary-expr","locations":[{"start":{"line":32,"column":20},"end":{"line":32,"column":36}},{"start":{"line":32,"column":40},"end":{"line":32,"column":42}}]},"1":{"loc":{"start":{"line":55,"column":8},"end":{"line":58,"column":null}},"type":"if","locations":[{"start":{"line":55,"column":8},"end":{"line":58,"column":null}}]},"2":{"loc":{"start":{"line":59,"column":8},"end":{"line":63,"column":null}},"type":"if","locations":[{"start":{"line":59,"column":8},"end":{"line":63,"column":null}}]},"3":{"loc":{"start":{"line":66,"column":47},"end":{"line":66,"column":69}},"type":"binary-expr","locations":[{"start":{"line":66,"column":47},"end":{"line":66,"column":63}},{"start":{"line":66,"column":67},"end":{"line":66,"column":69}}]},"4":{"loc":{"start":{"line":80,"column":20},"end":{"line":86,"column":null}},"type":"if","locations":[{"start":{"line":80,"column":20},"end":{"line":86,"column":null}}]},"5":{"loc":{"start":{"line":82,"column":24},"end":{"line":85,"column":null}},"type":"if","locations":[{"start":{"line":82,"column":24},"end":{"line":85,"column":null}}]},"6":{"loc":{"start":{"line":87,"column":20},"end":{"line":92,"column":null}},"type":"if","locations":[{"start":{"line":87,"column":20},"end":{"line":92,"column":null}}]},"7":{"loc":{"start":{"line":88,"column":24},"end":{"line":91,"column":null}},"type":"if","locations":[{"start":{"line":88,"column":24},"end":{"line":91,"column":null}}]},"8":{"loc":{"start":{"line":93,"column":20},"end":{"line":97,"column":null}},"type":"if","locations":[{"start":{"line":93,"column":20},"end":{"line":97,"column":null}},{"start":{"line":95,"column":27},"end":{"line":97,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":2,"9":2,"10":2,"11":0,"12":1,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0},"f":{"0":1,"1":1,"2":2,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"b":{"0":[1,1],"1":[0],"2":[0],"3":[0,0],"4":[0],"5":[0],"6":[0],"7":[0],"8":[0,0]}} -,"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/interfaces/storage-provider.interface.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/interfaces/storage-provider.interface.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":2,"column":4},"end":{"line":2,"column":null}},"2":{"start":{"line":3,"column":4},"end":{"line":3,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}},"loc":{"start":{"line":1,"column":17},"end":{"line":4,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":null}},"type":"binary-expr","locations":[{"start":{"line":1,"column":12},"end":{"line":1,"column":17}},{"start":{"line":1,"column":12},"end":{"line":1,"column":null}}]}},"s":{"0":1,"1":1,"2":1},"f":{"0":1},"b":{"0":[1,1]}} -,"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/services/allure-service.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/services/allure-service.ts","statementMap":{"0":{"start":{"line":7,"column":30},"end":{"line":7,"column":53}},"1":{"start":{"line":9,"column":21},"end":{"line":9,"column":23}},"2":{"start":{"line":10,"column":21},"end":{"line":10,"column":23}},"3":{"start":{"line":12,"column":8},"end":{"line":28,"column":11}},"4":{"start":{"line":13,"column":12},"end":{"line":15,"column":15}},"5":{"start":{"line":14,"column":16},"end":{"line":14,"column":42}},"6":{"start":{"line":17,"column":12},"end":{"line":19,"column":15}},"7":{"start":{"line":18,"column":16},"end":{"line":18,"column":42}},"8":{"start":{"line":21,"column":12},"end":{"line":23,"column":15}},"9":{"start":{"line":22,"column":16},"end":{"line":22,"column":30}},"10":{"start":{"line":25,"column":12},"end":{"line":27,"column":15}},"11":{"start":{"line":26,"column":16},"end":{"line":26,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":4},"end":{"line":6,"column":14}},"loc":{"start":{"line":6,"column":29},"end":{"line":29,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":27},"end":{"line":12,"column":28}},"loc":{"start":{"line":12,"column":47},"end":{"line":28,"column":9}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":13,"column":45},"end":{"line":13,"column":46}},"loc":{"start":{"line":13,"column":59},"end":{"line":15,"column":13}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":17,"column":45},"end":{"line":17,"column":46}},"loc":{"start":{"line":17,"column":59},"end":{"line":19,"column":13}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":21,"column":38},"end":{"line":21,"column":39}},"loc":{"start":{"line":21,"column":53},"end":{"line":23,"column":13}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":25,"column":37},"end":{"line":25,"column":38}},"loc":{"start":{"line":25,"column":58},"end":{"line":27,"column":13}}}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0},"b":{}} -,"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/utilities/counter.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/utilities/counter.ts","statementMap":{"0":{"start":{"line":14,"column":11},"end":{"line":14,"column":53}},"1":{"start":{"line":15,"column":11},"end":{"line":15,"column":null}},"2":{"start":{"line":16,"column":11},"end":{"line":16,"column":null}},"3":{"start":{"line":20,"column":8},"end":{"line":20,"column":null}},"4":{"start":{"line":24,"column":8},"end":{"line":26,"column":11}},"5":{"start":{"line":25,"column":12},"end":{"line":25,"column":36}},"6":{"start":{"line":29,"column":8},"end":{"line":31,"column":11}},"7":{"start":{"line":30,"column":12},"end":{"line":30,"column":35}},"8":{"start":{"line":35,"column":8},"end":{"line":37,"column":null}},"9":{"start":{"line":36,"column":12},"end":{"line":36,"column":40}},"10":{"start":{"line":40,"column":8},"end":{"line":42,"column":null}},"11":{"start":{"line":41,"column":12},"end":{"line":41,"column":48}},"12":{"start":{"line":43,"column":24},"end":{"line":43,"column":51}},"13":{"start":{"line":44,"column":8},"end":{"line":44,"column":null}},"14":{"start":{"line":48,"column":21},"end":{"line":48,"column":22}},"15":{"start":{"line":49,"column":24},"end":{"line":49,"column":74}},"16":{"start":{"line":50,"column":28},"end":{"line":50,"column":107}},"17":{"start":{"line":50,"column":54},"end":{"line":50,"column":106}},"18":{"start":{"line":52,"column":8},"end":{"line":55,"column":null}},"19":{"start":{"line":53,"column":27},"end":{"line":53,"column":93}},"20":{"start":{"line":54,"column":12},"end":{"line":54,"column":null}},"21":{"start":{"line":54,"column":44},"end":{"line":54,"column":null}},"22":{"start":{"line":56,"column":8},"end":{"line":56,"column":null}},"23":{"start":{"line":59,"column":23},"end":{"line":59,"column":36}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":19,"column":4},"end":{"line":19,"column":null}},"loc":{"start":{"line":19,"column":4},"end":{"line":21,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":23,"column":11},"end":{"line":23,"column":16}},"loc":{"start":{"line":23,"column":48},"end":{"line":27,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":24,"column":38},"end":{"line":24,"column":41}},"loc":{"start":{"line":24,"column":43},"end":{"line":26,"column":9}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":28,"column":11},"end":{"line":28,"column":16}},"loc":{"start":{"line":28,"column":47},"end":{"line":32,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":29,"column":38},"end":{"line":29,"column":41}},"loc":{"start":{"line":29,"column":43},"end":{"line":31,"column":9}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":34,"column":4},"end":{"line":34,"column":14}},"loc":{"start":{"line":34,"column":14},"end":{"line":38,"column":5}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":39,"column":4},"end":{"line":39,"column":21}},"loc":{"start":{"line":39,"column":21},"end":{"line":45,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":47,"column":4},"end":{"line":47,"column":9}},"loc":{"start":{"line":47,"column":40},"end":{"line":57,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":50,"column":43},"end":{"line":50,"column":44}},"loc":{"start":{"line":50,"column":54},"end":{"line":50,"column":106}}}},"branchMap":{"0":{"loc":{"start":{"line":35,"column":8},"end":{"line":37,"column":null}},"type":"if","locations":[{"start":{"line":35,"column":8},"end":{"line":37,"column":null}}]},"1":{"loc":{"start":{"line":40,"column":8},"end":{"line":42,"column":null}},"type":"if","locations":[{"start":{"line":40,"column":8},"end":{"line":42,"column":null}}]},"2":{"loc":{"start":{"line":50,"column":54},"end":{"line":50,"column":106}},"type":"binary-expr","locations":[{"start":{"line":50,"column":54},"end":{"line":50,"column":68}},{"start":{"line":50,"column":72},"end":{"line":50,"column":106}}]},"3":{"loc":{"start":{"line":54,"column":12},"end":{"line":54,"column":null}},"type":"if","locations":[{"start":{"line":54,"column":12},"end":{"line":54,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":2},"f":{"0":2,"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"b":{"0":[0],"1":[0],"2":[0,0],"3":[0]}} -,"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/utilities/file-util.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/utilities/file-util.ts","statementMap":{"0":{"start":{"line":8,"column":4},"end":{"line":20,"column":null}},"1":{"start":{"line":10,"column":29},"end":{"line":10,"column":51}},"2":{"start":{"line":13,"column":29},"end":{"line":13,"column":69}},"3":{"start":{"line":16,"column":8},"end":{"line":16,"column":40}},"4":{"start":{"line":18,"column":8},"end":{"line":18,"column":72}},"5":{"start":{"line":19,"column":8},"end":{"line":19,"column":20}},"6":{"start":{"line":25,"column":20},"end":{"line":25,"column":31}},"7":{"start":{"line":27,"column":19},"end":{"line":27,"column":63}},"8":{"start":{"line":29,"column":4},"end":{"line":31,"column":null}},"9":{"start":{"line":30,"column":8},"end":{"line":30,"column":50}},"10":{"start":{"line":32,"column":4},"end":{"line":39,"column":7}},"11":{"start":{"line":33,"column":8},"end":{"line":38,"column":null}},"12":{"start":{"line":34,"column":12},"end":{"line":34,"column":67}},"13":{"start":{"line":37,"column":12},"end":{"line":37,"column":78}},"14":{"start":{"line":40,"column":4},"end":{"line":40,"column":18}},"15":{"start":{"line":44,"column":20},"end":{"line":44,"column":32}},"16":{"start":{"line":45,"column":19},"end":{"line":45,"column":64}},"17":{"start":{"line":47,"column":4},"end":{"line":49,"column":null}},"18":{"start":{"line":48,"column":8},"end":{"line":48,"column":50}},"19":{"start":{"line":50,"column":4},"end":{"line":50,"column":18}},"20":{"start":{"line":54,"column":19},"end":{"line":54,"column":68}},"21":{"start":{"line":55,"column":4},"end":{"line":57,"column":null}},"22":{"start":{"line":56,"column":8},"end":{"line":56,"column":22}},"23":{"start":{"line":58,"column":4},"end":{"line":58,"column":null}},"24":{"start":{"line":62,"column":21},"end":{"line":62,"column":42}},"25":{"start":{"line":66,"column":4},"end":{"line":72,"column":null}},"26":{"start":{"line":67,"column":8},"end":{"line":67,"column":42}},"27":{"start":{"line":70,"column":28},"end":{"line":70,"column":68}},"28":{"start":{"line":71,"column":8},"end":{"line":71,"column":71}},"29":{"start":{"line":71,"column":46},"end":{"line":71,"column":69}},"30":{"start":{"line":74,"column":4},"end":{"line":74,"column":null}}},"fnMap":{"0":{"name":"readJsonFile","decl":{"start":{"line":7,"column":22},"end":{"line":7,"column":34}},"loc":{"start":{"line":7,"column":51},"end":{"line":21,"column":1}}},"1":{"name":"getRuntimeDirectory","decl":{"start":{"line":23,"column":22},"end":{"line":23,"column":41}},"loc":{"start":{"line":23,"column":41},"end":{"line":41,"column":1}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":23},"end":{"line":32,"column":28}},"loc":{"start":{"line":32,"column":34},"end":{"line":39,"column":5}}},"3":{"name":"getUserAppDirectory","decl":{"start":{"line":43,"column":22},"end":{"line":43,"column":41}},"loc":{"start":{"line":43,"column":41},"end":{"line":51,"column":1}}},"4":{"name":"getSavedCredentialDirectory","decl":{"start":{"line":53,"column":22},"end":{"line":53,"column":49}},"loc":{"start":{"line":53,"column":49},"end":{"line":59,"column":1}}},"5":{"name":"isJavaInstalled","decl":{"start":{"line":61,"column":16},"end":{"line":61,"column":31}},"loc":{"start":{"line":61,"column":31},"end":{"line":75,"column":1}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":36},"end":{"line":71,"column":37}},"loc":{"start":{"line":71,"column":46},"end":{"line":71,"column":69}}}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":4},"end":{"line":31,"column":null}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":31,"column":null}}]},"1":{"loc":{"start":{"line":47,"column":4},"end":{"line":49,"column":null}},"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":49,"column":null}}]},"2":{"loc":{"start":{"line":55,"column":4},"end":{"line":57,"column":null}},"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":57,"column":null}}]},"3":{"loc":{"start":{"line":66,"column":4},"end":{"line":72,"column":null}},"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":72,"column":null}},{"start":{"line":68,"column":11},"end":{"line":72,"column":null}}]},"4":{"loc":{"start":{"line":74,"column":11},"end":{"line":74,"column":50}},"type":"binary-expr","locations":[{"start":{"line":74,"column":11},"end":{"line":74,"column":19}},{"start":{"line":74,"column":23},"end":{"line":74,"column":50}}]}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"b":{"0":[0],"1":[0],"2":[0],"3":[0,0],"4":[0,0]}} -,"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/utilities/string-builder.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/utilities/string-builder.ts","statementMap":{"0":{"start":{"line":2,"column":12},"end":{"line":2,"column":35}},"1":{"start":{"line":5,"column":8},"end":{"line":5,"column":33}},"2":{"start":{"line":6,"column":8},"end":{"line":6,"column":20}},"3":{"start":{"line":9,"column":14},"end":{"line":9,"column":34}},"4":{"start":{"line":12,"column":8},"end":{"line":12,"column":37}},"5":{"start":{"line":16,"column":8},"end":{"line":16,"column":26}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}},"loc":{"start":{"line":1,"column":0},"end":{"line":18,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":4},"end":{"line":4,"column":10}},"loc":{"start":{"line":4,"column":24},"end":{"line":7,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":4},"end":{"line":9,"column":10}},"loc":{"start":{"line":9,"column":10},"end":{"line":9,"column":34}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":11,"column":4},"end":{"line":11,"column":12}},"loc":{"start":{"line":11,"column":12},"end":{"line":13,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":4},"end":{"line":15,"column":9}},"loc":{"start":{"line":15,"column":9},"end":{"line":17,"column":5}}}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0},"b":{}} -,"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/utilities/util.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/src/utilities/util.ts","statementMap":{"0":{"start":{"line":11,"column":4},"end":{"line":11,"column":null}},"1":{"start":{"line":17,"column":4},"end":{"line":17,"column":34}},"2":{"start":{"line":19,"column":4},"end":{"line":19,"column":27}},"3":{"start":{"line":19,"column":21},"end":{"line":19,"column":27}},"4":{"start":{"line":21,"column":18},"end":{"line":21,"column":43}},"5":{"start":{"line":23,"column":4},"end":{"line":32,"column":null}},"6":{"start":{"line":24,"column":25},"end":{"line":24,"column":49}},"7":{"start":{"line":25,"column":21},"end":{"line":25,"column":44}},"8":{"start":{"line":27,"column":8},"end":{"line":31,"column":null}},"9":{"start":{"line":28,"column":12},"end":{"line":28,"column":77}},"10":{"start":{"line":30,"column":12},"end":{"line":30,"column":43}},"11":{"start":{"line":37,"column":4},"end":{"line":61,"column":7}},"12":{"start":{"line":40,"column":26},"end":{"line":40,"column":53}},"13":{"start":{"line":41,"column":8},"end":{"line":41,"column":55}},"14":{"start":{"line":43,"column":23},"end":{"line":43,"column":62}},"15":{"start":{"line":44,"column":24},"end":{"line":44,"column":59}},"16":{"start":{"line":46,"column":8},"end":{"line":48,"column":11}},"17":{"start":{"line":47,"column":12},"end":{"line":47,"column":26}},"18":{"start":{"line":49,"column":8},"end":{"line":52,"column":11}},"19":{"start":{"line":50,"column":12},"end":{"line":50,"column":53}},"20":{"start":{"line":51,"column":12},"end":{"line":51,"column":27}},"21":{"start":{"line":54,"column":8},"end":{"line":54,"column":29}},"22":{"start":{"line":56,"column":8},"end":{"line":58,"column":null}},"23":{"start":{"line":57,"column":12},"end":{"line":57,"column":72}},"24":{"start":{"line":60,"column":8},"end":{"line":60,"column":27}},"25":{"start":{"line":65,"column":16},"end":{"line":65,"column":17}},"26":{"start":{"line":66,"column":4},"end":{"line":74,"column":null}},"27":{"start":{"line":67,"column":8},"end":{"line":71,"column":null}},"28":{"start":{"line":68,"column":28},"end":{"line":68,"column":72}},"29":{"start":{"line":69,"column":26},"end":{"line":69,"column":67}},"30":{"start":{"line":69,"column":52},"end":{"line":69,"column":66}},"31":{"start":{"line":70,"column":12},"end":{"line":70,"column":34}},"32":{"start":{"line":73,"column":8},"end":{"line":73,"column":50}},"33":{"start":{"line":75,"column":4},"end":{"line":75,"column":null}},"34":{"start":{"line":79,"column":4},"end":{"line":79,"column":null}},"35":{"start":{"line":83,"column":4},"end":{"line":85,"column":null}},"36":{"start":{"line":84,"column":8},"end":{"line":84,"column":null}},"37":{"start":{"line":86,"column":4},"end":{"line":90,"column":null}},"38":{"start":{"line":98,"column":4},"end":{"line":108,"column":null}},"39":{"start":{"line":99,"column":8},"end":{"line":105,"column":null}},"40":{"start":{"line":100,"column":12},"end":{"line":100,"column":null}},"41":{"start":{"line":101,"column":15},"end":{"line":105,"column":null}},"42":{"start":{"line":102,"column":12},"end":{"line":102,"column":null}},"43":{"start":{"line":103,"column":15},"end":{"line":105,"column":null}},"44":{"start":{"line":104,"column":12},"end":{"line":104,"column":null}},"45":{"start":{"line":107,"column":8},"end":{"line":107,"column":null}},"46":{"start":{"line":117,"column":4},"end":{"line":129,"column":null}},"47":{"start":{"line":119,"column":8},"end":{"line":119,"column":27}},"48":{"start":{"line":120,"column":23},"end":{"line":120,"column":35}},"49":{"start":{"line":121,"column":8},"end":{"line":121,"column":29}},"50":{"start":{"line":122,"column":8},"end":{"line":122,"column":22}},"51":{"start":{"line":125,"column":8},"end":{"line":128,"column":11}}},"fnMap":{"0":{"name":"appLog","decl":{"start":{"line":10,"column":16},"end":{"line":10,"column":22}},"loc":{"start":{"line":10,"column":35},"end":{"line":12,"column":1}}},"1":{"name":"changePermissionsRecursively","decl":{"start":{"line":15,"column":22},"end":{"line":15,"column":50}},"loc":{"start":{"line":15,"column":107},"end":{"line":33,"column":1}}},"2":{"name":"zipFolder","decl":{"start":{"line":36,"column":22},"end":{"line":36,"column":31}},"loc":{"start":{"line":36,"column":109},"end":{"line":62,"column":1}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":37,"column":29},"end":{"line":37,"column":30}},"loc":{"start":{"line":37,"column":75},"end":{"line":61,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":30}},"loc":{"start":{"line":46,"column":32},"end":{"line":48,"column":9}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":49,"column":28},"end":{"line":49,"column":29}},"loc":{"start":{"line":49,"column":36},"end":{"line":52,"column":9}}},"6":{"name":"countFiles","decl":{"start":{"line":64,"column":22},"end":{"line":64,"column":32}},"loc":{"start":{"line":64,"column":52},"end":{"line":76,"column":1}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":69,"column":41},"end":{"line":69,"column":42}},"loc":{"start":{"line":69,"column":52},"end":{"line":69,"column":66}}},"8":{"name":"isFileTypeAllure","decl":{"start":{"line":78,"column":16},"end":{"line":78,"column":32}},"loc":{"start":{"line":78,"column":49},"end":{"line":80,"column":1}}},"9":{"name":"getDashboardUrl","decl":{"start":{"line":82,"column":16},"end":{"line":82,"column":31}},"loc":{"start":{"line":82,"column":102},"end":{"line":91,"column":1}}},"10":{"name":"printStats","decl":{"start":{"line":97,"column":16},"end":{"line":97,"column":26}},"loc":{"start":{"line":97,"column":46},"end":{"line":109,"column":1}}},"11":{"name":"withOra","decl":{"start":{"line":116,"column":22},"end":{"line":116,"column":29}},"loc":{"start":{"line":116,"column":73},"end":{"line":130,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":87},"end":{"line":15,"column":107}},"type":"default-arg","locations":[{"start":{"line":15,"column":106},"end":{"line":15,"column":107}}]},"1":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":27}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":27}}]},"2":{"loc":{"start":{"line":27,"column":8},"end":{"line":31,"column":null}},"type":"if","locations":[{"start":{"line":27,"column":8},"end":{"line":31,"column":null}},{"start":{"line":29,"column":15},"end":{"line":31,"column":null}}]},"3":{"loc":{"start":{"line":57,"column":43},"end":{"line":57,"column":70}},"type":"binary-expr","locations":[{"start":{"line":57,"column":43},"end":{"line":57,"column":61}},{"start":{"line":57,"column":65},"end":{"line":57,"column":70}}]},"4":{"loc":{"start":{"line":83,"column":4},"end":{"line":85,"column":null}},"type":"if","locations":[{"start":{"line":83,"column":4},"end":{"line":85,"column":null}}]},"5":{"loc":{"start":{"line":98,"column":4},"end":{"line":108,"column":null}},"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":108,"column":null}},{"start":{"line":106,"column":11},"end":{"line":108,"column":null}}]},"6":{"loc":{"start":{"line":99,"column":8},"end":{"line":105,"column":null}},"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":105,"column":null}},{"start":{"line":101,"column":15},"end":{"line":105,"column":null}}]},"7":{"loc":{"start":{"line":99,"column":12},"end":{"line":99,"column":48}},"type":"binary-expr","locations":[{"start":{"line":99,"column":12},"end":{"line":99,"column":28}},{"start":{"line":99,"column":32},"end":{"line":99,"column":48}}]},"8":{"loc":{"start":{"line":101,"column":15},"end":{"line":105,"column":null}},"type":"if","locations":[{"start":{"line":101,"column":15},"end":{"line":105,"column":null}},{"start":{"line":103,"column":15},"end":{"line":105,"column":null}}]},"9":{"loc":{"start":{"line":103,"column":15},"end":{"line":105,"column":null}},"type":"if","locations":[{"start":{"line":103,"column":15},"end":{"line":105,"column":null}}]},"10":{"loc":{"start":{"line":117,"column":4},"end":{"line":129,"column":null}},"type":"if","locations":[{"start":{"line":117,"column":4},"end":{"line":129,"column":null}},{"start":{"line":123,"column":11},"end":{"line":129,"column":null}}]}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0},"f":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"b":{"0":[0],"1":[0],"2":[0,0],"3":[0,0],"4":[0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0],"10":[0,0]}} -,"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/test/mocks/fake-args.ts": {"path":"/home/runner/work/allure-report-deployer/allure-report-deployer/apps/cli/test/mocks/fake-args.ts","statementMap":{"0":{"start":{"line":3,"column":40},"end":{"line":19,"column":null}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{}} +{"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/features/allure.ts": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/features/allure.ts","statementMap":{"0":{"start":{"line":17,"column":8},"end":{"line":17,"column":null}},"1":{"start":{"line":18,"column":8},"end":{"line":18,"column":25}},"2":{"start":{"line":22,"column":8},"end":{"line":22,"column":59}},"3":{"start":{"line":23,"column":28},"end":{"line":23,"column":116}},"4":{"start":{"line":24,"column":8},"end":{"line":26,"column":null}},"5":{"start":{"line":25,"column":12},"end":{"line":25,"column":60}},"6":{"start":{"line":30,"column":29},"end":{"line":30,"column":94}},"7":{"start":{"line":31,"column":8},"end":{"line":31,"column":105}},"8":{"start":{"line":32,"column":24},"end":{"line":38,"column":null}},"9":{"start":{"line":39,"column":8},"end":{"line":41,"column":null}},"10":{"start":{"line":40,"column":12},"end":{"line":40,"column":null}},"11":{"start":{"line":42,"column":28},"end":{"line":42,"column":71}},"12":{"start":{"line":43,"column":8},"end":{"line":45,"column":null}},"13":{"start":{"line":44,"column":12},"end":{"line":44,"column":64}},"14":{"start":{"line":46,"column":8},"end":{"line":46,"column":37}},"15":{"start":{"line":52,"column":24},"end":{"line":55,"column":10}},"16":{"start":{"line":57,"column":22},"end":{"line":57,"column":65}},"17":{"start":{"line":58,"column":29},"end":{"line":58,"column":31}},"18":{"start":{"line":60,"column":27},"end":{"line":60,"column":28}},"19":{"start":{"line":61,"column":8},"end":{"line":74,"column":null}},"20":{"start":{"line":63,"column":12},"end":{"line":63,"column":41}},"21":{"start":{"line":63,"column":32},"end":{"line":63,"column":41}},"22":{"start":{"line":65,"column":12},"end":{"line":72,"column":16}},"23":{"start":{"line":66,"column":16},"end":{"line":71,"column":null}},"24":{"start":{"line":67,"column":20},"end":{"line":67,"column":46}},"25":{"start":{"line":68,"column":20},"end":{"line":68,"column":35}},"26":{"start":{"line":70,"column":20},"end":{"line":70,"column":75}},"27":{"start":{"line":77,"column":8},"end":{"line":77,"column":40}},"28":{"start":{"line":78,"column":8},"end":{"line":78,"column":54}},"29":{"start":{"line":82,"column":27},"end":{"line":82,"column":71}},"30":{"start":{"line":83,"column":28},"end":{"line":83,"column":80}},"31":{"start":{"line":84,"column":8},"end":{"line":84,"column":84}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":4},"end":{"line":16,"column":16}},"loc":{"start":{"line":16,"column":90},"end":{"line":19,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":21,"column":4},"end":{"line":21,"column":9}},"loc":{"start":{"line":21,"column":26},"end":{"line":27,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":29,"column":4},"end":{"line":29,"column":9}},"loc":{"start":{"line":29,"column":42},"end":{"line":47,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":50,"column":4},"end":{"line":50,"column":9}},"loc":{"start":{"line":50,"column":29},"end":{"line":79,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":65,"column":36},"end":{"line":65,"column":41}},"loc":{"start":{"line":65,"column":47},"end":{"line":72,"column":13}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":81,"column":12},"end":{"line":81,"column":17}},"loc":{"start":{"line":81,"column":39},"end":{"line":85,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":28},"end":{"line":17,"column":63}},"type":"binary-expr","locations":[{"start":{"line":17,"column":28},"end":{"line":17,"column":40}},{"start":{"line":17,"column":44},"end":{"line":17,"column":63}}]},"1":{"loc":{"start":{"line":21,"column":15},"end":{"line":21,"column":26}},"type":"default-arg","locations":[{"start":{"line":21,"column":22},"end":{"line":21,"column":26}}]},"2":{"loc":{"start":{"line":24,"column":8},"end":{"line":26,"column":null}},"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":26,"column":null}}]},"3":{"loc":{"start":{"line":39,"column":8},"end":{"line":41,"column":null}},"type":"if","locations":[{"start":{"line":39,"column":8},"end":{"line":41,"column":null}}]},"4":{"loc":{"start":{"line":43,"column":8},"end":{"line":45,"column":null}},"type":"if","locations":[{"start":{"line":43,"column":8},"end":{"line":45,"column":null}}]},"5":{"loc":{"start":{"line":63,"column":12},"end":{"line":63,"column":41}},"type":"if","locations":[{"start":{"line":63,"column":12},"end":{"line":63,"column":41}}]}},"s":{"0":4,"1":4,"2":1,"3":1,"4":1,"5":0,"6":2,"7":2,"8":2,"9":2,"10":0,"11":2,"12":2,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":2,"21":0,"22":2,"23":2,"24":2,"25":2,"26":0,"27":1,"28":1,"29":2,"30":2,"31":2},"f":{"0":4,"1":1,"2":2,"3":1,"4":2,"5":2},"b":{"0":[4,0],"1":[1],"2":[0],"3":[0],"4":[1],"5":[0]}} +,"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/features/storage.ts": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/features/storage.ts","statementMap":{"0":{"start":{"line":19,"column":8},"end":{"line":19,"column":33}},"1":{"start":{"line":20,"column":8},"end":{"line":20,"column":25}},"2":{"start":{"line":21,"column":8},"end":{"line":21,"column":33}},"3":{"start":{"line":27,"column":8},"end":{"line":30,"column":null}},"4":{"start":{"line":31,"column":31},"end":{"line":34,"column":10}},"5":{"start":{"line":35,"column":22},"end":{"line":35,"column":65}},"6":{"start":{"line":36,"column":30},"end":{"line":36,"column":32}},"7":{"start":{"line":37,"column":8},"end":{"line":45,"column":null}},"8":{"start":{"line":38,"column":12},"end":{"line":44,"column":null}},"9":{"start":{"line":39,"column":16},"end":{"line":43,"column":null}},"10":{"start":{"line":40,"column":20},"end":{"line":40,"column":91}},"11":{"start":{"line":42,"column":20},"end":{"line":42,"column":64}},"12":{"start":{"line":46,"column":8},"end":{"line":46,"column":41}},"13":{"start":{"line":53,"column":74},"end":{"line":53,"column":76}},"14":{"start":{"line":54,"column":31},"end":{"line":54,"column":33}},"15":{"start":{"line":55,"column":8},"end":{"line":58,"column":null}},"16":{"start":{"line":56,"column":12},"end":{"line":56,"column":null}},"17":{"start":{"line":57,"column":12},"end":{"line":57,"column":null}},"18":{"start":{"line":59,"column":8},"end":{"line":63,"column":null}},"19":{"start":{"line":60,"column":34},"end":{"line":60,"column":68}},"20":{"start":{"line":61,"column":12},"end":{"line":61,"column":null}},"21":{"start":{"line":62,"column":12},"end":{"line":62,"column":null}},"22":{"start":{"line":64,"column":31},"end":{"line":64,"column":101}},"23":{"start":{"line":65,"column":8},"end":{"line":65,"column":null}},"24":{"start":{"line":66,"column":37},"end":{"line":66,"column":101}},"25":{"start":{"line":68,"column":8},"end":{"line":71,"column":null}},"26":{"start":{"line":75,"column":8},"end":{"line":106,"column":11}},"27":{"start":{"line":76,"column":12},"end":{"line":105,"column":19}},"28":{"start":{"line":79,"column":37},"end":{"line":79,"column":69}},"29":{"start":{"line":80,"column":20},"end":{"line":86,"column":null}},"30":{"start":{"line":82,"column":24},"end":{"line":85,"column":null}},"31":{"start":{"line":83,"column":28},"end":{"line":83,"column":46}},"32":{"start":{"line":84,"column":28},"end":{"line":84,"column":35}},"33":{"start":{"line":87,"column":20},"end":{"line":92,"column":null}},"34":{"start":{"line":88,"column":24},"end":{"line":91,"column":null}},"35":{"start":{"line":89,"column":28},"end":{"line":89,"column":46}},"36":{"start":{"line":90,"column":28},"end":{"line":90,"column":35}},"37":{"start":{"line":93,"column":20},"end":{"line":97,"column":null}},"38":{"start":{"line":94,"column":24},"end":{"line":94,"column":71}},"39":{"start":{"line":96,"column":24},"end":{"line":96,"column":42}},"40":{"start":{"line":100,"column":20},"end":{"line":100,"column":34}},"41":{"start":{"line":103,"column":20},"end":{"line":103,"column":53}},"42":{"start":{"line":104,"column":20},"end":{"line":104,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":18,"column":4},"end":{"line":18,"column":16}},"loc":{"start":{"line":18,"column":62},"end":{"line":22,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":25,"column":11},"end":{"line":25,"column":16}},"loc":{"start":{"line":25,"column":38},"end":{"line":47,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":38,"column":37},"end":{"line":38,"column":42}},"loc":{"start":{"line":38,"column":48},"end":{"line":44,"column":13}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":52,"column":11},"end":{"line":52,"column":16}},"loc":{"start":{"line":52,"column":32},"end":{"line":72,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":74,"column":11},"end":{"line":74,"column":16}},"loc":{"start":{"line":74,"column":73},"end":{"line":107,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":75,"column":33},"end":{"line":75,"column":34}},"loc":{"start":{"line":75,"column":53},"end":{"line":106,"column":9}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":78,"column":29},"end":{"line":78,"column":34}},"loc":{"start":{"line":78,"column":52},"end":{"line":98,"column":17}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":99,"column":29},"end":{"line":99,"column":32}},"loc":{"start":{"line":99,"column":34},"end":{"line":101,"column":17}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":102,"column":29},"end":{"line":102,"column":30}},"loc":{"start":{"line":102,"column":37},"end":{"line":105,"column":17}}}},"branchMap":{"0":{"loc":{"start":{"line":32,"column":20},"end":{"line":32,"column":42}},"type":"binary-expr","locations":[{"start":{"line":32,"column":20},"end":{"line":32,"column":36}},{"start":{"line":32,"column":40},"end":{"line":32,"column":42}}]},"1":{"loc":{"start":{"line":55,"column":8},"end":{"line":58,"column":null}},"type":"if","locations":[{"start":{"line":55,"column":8},"end":{"line":58,"column":null}}]},"2":{"loc":{"start":{"line":59,"column":8},"end":{"line":63,"column":null}},"type":"if","locations":[{"start":{"line":59,"column":8},"end":{"line":63,"column":null}}]},"3":{"loc":{"start":{"line":66,"column":47},"end":{"line":66,"column":69}},"type":"binary-expr","locations":[{"start":{"line":66,"column":47},"end":{"line":66,"column":63}},{"start":{"line":66,"column":67},"end":{"line":66,"column":69}}]},"4":{"loc":{"start":{"line":80,"column":20},"end":{"line":86,"column":null}},"type":"if","locations":[{"start":{"line":80,"column":20},"end":{"line":86,"column":null}}]},"5":{"loc":{"start":{"line":82,"column":24},"end":{"line":85,"column":null}},"type":"if","locations":[{"start":{"line":82,"column":24},"end":{"line":85,"column":null}}]},"6":{"loc":{"start":{"line":87,"column":20},"end":{"line":92,"column":null}},"type":"if","locations":[{"start":{"line":87,"column":20},"end":{"line":92,"column":null}}]},"7":{"loc":{"start":{"line":88,"column":24},"end":{"line":91,"column":null}},"type":"if","locations":[{"start":{"line":88,"column":24},"end":{"line":91,"column":null}}]},"8":{"loc":{"start":{"line":93,"column":20},"end":{"line":97,"column":null}},"type":"if","locations":[{"start":{"line":93,"column":20},"end":{"line":97,"column":null}},{"start":{"line":95,"column":27},"end":{"line":97,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":2,"9":2,"10":2,"11":0,"12":1,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0},"f":{"0":1,"1":1,"2":2,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"b":{"0":[1,1],"1":[0],"2":[0],"3":[0,0],"4":[0],"5":[0],"6":[0],"7":[0],"8":[0,0]}} +,"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/interfaces/storage-provider.interface.ts": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/interfaces/storage-provider.interface.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":2,"column":4},"end":{"line":2,"column":null}},"2":{"start":{"line":3,"column":4},"end":{"line":3,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}},"loc":{"start":{"line":1,"column":17},"end":{"line":4,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":null}},"type":"binary-expr","locations":[{"start":{"line":1,"column":12},"end":{"line":1,"column":17}},{"start":{"line":1,"column":12},"end":{"line":1,"column":null}}]}},"s":{"0":1,"1":1,"2":1},"f":{"0":1},"b":{"0":[1,1]}} +,"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/services/allure.service.ts": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/services/allure.service.ts","statementMap":{"0":{"start":{"line":7,"column":30},"end":{"line":7,"column":53}},"1":{"start":{"line":9,"column":21},"end":{"line":9,"column":23}},"2":{"start":{"line":10,"column":21},"end":{"line":10,"column":23}},"3":{"start":{"line":12,"column":8},"end":{"line":28,"column":11}},"4":{"start":{"line":13,"column":12},"end":{"line":15,"column":15}},"5":{"start":{"line":14,"column":16},"end":{"line":14,"column":42}},"6":{"start":{"line":17,"column":12},"end":{"line":19,"column":15}},"7":{"start":{"line":18,"column":16},"end":{"line":18,"column":42}},"8":{"start":{"line":21,"column":12},"end":{"line":23,"column":15}},"9":{"start":{"line":22,"column":16},"end":{"line":22,"column":30}},"10":{"start":{"line":25,"column":12},"end":{"line":27,"column":15}},"11":{"start":{"line":26,"column":16},"end":{"line":26,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":4},"end":{"line":6,"column":14}},"loc":{"start":{"line":6,"column":29},"end":{"line":29,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":27},"end":{"line":12,"column":28}},"loc":{"start":{"line":12,"column":47},"end":{"line":28,"column":9}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":13,"column":45},"end":{"line":13,"column":46}},"loc":{"start":{"line":13,"column":59},"end":{"line":15,"column":13}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":17,"column":45},"end":{"line":17,"column":46}},"loc":{"start":{"line":17,"column":59},"end":{"line":19,"column":13}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":21,"column":38},"end":{"line":21,"column":39}},"loc":{"start":{"line":21,"column":53},"end":{"line":23,"column":13}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":25,"column":37},"end":{"line":25,"column":38}},"loc":{"start":{"line":25,"column":58},"end":{"line":27,"column":13}}}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0},"b":{}} +,"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/utilities/counter.ts": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/utilities/counter.ts","statementMap":{"0":{"start":{"line":15,"column":11},"end":{"line":15,"column":53}},"1":{"start":{"line":16,"column":11},"end":{"line":16,"column":null}},"2":{"start":{"line":17,"column":11},"end":{"line":17,"column":null}},"3":{"start":{"line":21,"column":8},"end":{"line":21,"column":null}},"4":{"start":{"line":25,"column":8},"end":{"line":27,"column":11}},"5":{"start":{"line":26,"column":12},"end":{"line":26,"column":36}},"6":{"start":{"line":30,"column":8},"end":{"line":32,"column":11}},"7":{"start":{"line":31,"column":12},"end":{"line":31,"column":35}},"8":{"start":{"line":36,"column":8},"end":{"line":38,"column":null}},"9":{"start":{"line":37,"column":12},"end":{"line":37,"column":40}},"10":{"start":{"line":41,"column":8},"end":{"line":43,"column":null}},"11":{"start":{"line":42,"column":12},"end":{"line":42,"column":48}},"12":{"start":{"line":44,"column":24},"end":{"line":44,"column":51}},"13":{"start":{"line":45,"column":8},"end":{"line":45,"column":null}},"14":{"start":{"line":49,"column":21},"end":{"line":49,"column":22}},"15":{"start":{"line":50,"column":24},"end":{"line":50,"column":74}},"16":{"start":{"line":51,"column":28},"end":{"line":51,"column":107}},"17":{"start":{"line":51,"column":54},"end":{"line":51,"column":106}},"18":{"start":{"line":53,"column":25},"end":{"line":53,"column":27}},"19":{"start":{"line":54,"column":22},"end":{"line":54,"column":32}},"20":{"start":{"line":55,"column":8},"end":{"line":62,"column":null}},"21":{"start":{"line":56,"column":12},"end":{"line":61,"column":null}},"22":{"start":{"line":57,"column":16},"end":{"line":60,"column":29}},"23":{"start":{"line":58,"column":35},"end":{"line":58,"column":101}},"24":{"start":{"line":59,"column":20},"end":{"line":59,"column":null}},"25":{"start":{"line":59,"column":52},"end":{"line":59,"column":null}},"26":{"start":{"line":63,"column":8},"end":{"line":63,"column":36}},"27":{"start":{"line":64,"column":8},"end":{"line":64,"column":null}},"28":{"start":{"line":67,"column":23},"end":{"line":67,"column":36}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":4},"end":{"line":20,"column":null}},"loc":{"start":{"line":20,"column":4},"end":{"line":22,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":24,"column":11},"end":{"line":24,"column":16}},"loc":{"start":{"line":24,"column":48},"end":{"line":28,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":25,"column":38},"end":{"line":25,"column":41}},"loc":{"start":{"line":25,"column":43},"end":{"line":27,"column":9}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":29,"column":11},"end":{"line":29,"column":16}},"loc":{"start":{"line":29,"column":47},"end":{"line":33,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":30,"column":38},"end":{"line":30,"column":41}},"loc":{"start":{"line":30,"column":43},"end":{"line":32,"column":9}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":35,"column":4},"end":{"line":35,"column":14}},"loc":{"start":{"line":35,"column":14},"end":{"line":39,"column":5}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":40,"column":4},"end":{"line":40,"column":21}},"loc":{"start":{"line":40,"column":21},"end":{"line":46,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":48,"column":4},"end":{"line":48,"column":9}},"loc":{"start":{"line":48,"column":40},"end":{"line":65,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":51,"column":43},"end":{"line":51,"column":44}},"loc":{"start":{"line":51,"column":54},"end":{"line":51,"column":106}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":56,"column":32},"end":{"line":56,"column":37}},"loc":{"start":{"line":56,"column":43},"end":{"line":61,"column":13}}}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":8},"end":{"line":38,"column":null}},"type":"if","locations":[{"start":{"line":36,"column":8},"end":{"line":38,"column":null}}]},"1":{"loc":{"start":{"line":41,"column":8},"end":{"line":43,"column":null}},"type":"if","locations":[{"start":{"line":41,"column":8},"end":{"line":43,"column":null}}]},"2":{"loc":{"start":{"line":51,"column":54},"end":{"line":51,"column":106}},"type":"binary-expr","locations":[{"start":{"line":51,"column":54},"end":{"line":51,"column":68}},{"start":{"line":51,"column":72},"end":{"line":51,"column":106}}]},"3":{"loc":{"start":{"line":59,"column":20},"end":{"line":59,"column":null}},"type":"if","locations":[{"start":{"line":59,"column":20},"end":{"line":59,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":2},"f":{"0":2,"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"b":{"0":[0],"1":[0],"2":[0,0],"3":[0]}} +,"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/utilities/file-util.ts": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/utilities/file-util.ts","statementMap":{"0":{"start":{"line":8,"column":4},"end":{"line":20,"column":null}},"1":{"start":{"line":10,"column":29},"end":{"line":10,"column":51}},"2":{"start":{"line":13,"column":29},"end":{"line":13,"column":69}},"3":{"start":{"line":16,"column":8},"end":{"line":16,"column":40}},"4":{"start":{"line":18,"column":8},"end":{"line":18,"column":72}},"5":{"start":{"line":19,"column":8},"end":{"line":19,"column":20}},"6":{"start":{"line":25,"column":20},"end":{"line":25,"column":31}},"7":{"start":{"line":27,"column":19},"end":{"line":27,"column":63}},"8":{"start":{"line":29,"column":4},"end":{"line":31,"column":null}},"9":{"start":{"line":30,"column":8},"end":{"line":30,"column":50}},"10":{"start":{"line":32,"column":4},"end":{"line":39,"column":7}},"11":{"start":{"line":33,"column":8},"end":{"line":38,"column":null}},"12":{"start":{"line":34,"column":12},"end":{"line":34,"column":67}},"13":{"start":{"line":37,"column":12},"end":{"line":37,"column":78}},"14":{"start":{"line":40,"column":4},"end":{"line":40,"column":18}},"15":{"start":{"line":44,"column":20},"end":{"line":44,"column":32}},"16":{"start":{"line":45,"column":19},"end":{"line":45,"column":64}},"17":{"start":{"line":47,"column":4},"end":{"line":49,"column":null}},"18":{"start":{"line":48,"column":8},"end":{"line":48,"column":50}},"19":{"start":{"line":50,"column":4},"end":{"line":50,"column":18}},"20":{"start":{"line":54,"column":19},"end":{"line":54,"column":68}},"21":{"start":{"line":55,"column":4},"end":{"line":57,"column":null}},"22":{"start":{"line":56,"column":8},"end":{"line":56,"column":22}},"23":{"start":{"line":58,"column":4},"end":{"line":58,"column":null}},"24":{"start":{"line":62,"column":21},"end":{"line":62,"column":42}},"25":{"start":{"line":66,"column":4},"end":{"line":72,"column":null}},"26":{"start":{"line":67,"column":8},"end":{"line":67,"column":42}},"27":{"start":{"line":70,"column":28},"end":{"line":70,"column":68}},"28":{"start":{"line":71,"column":8},"end":{"line":71,"column":71}},"29":{"start":{"line":71,"column":46},"end":{"line":71,"column":69}},"30":{"start":{"line":74,"column":4},"end":{"line":74,"column":null}}},"fnMap":{"0":{"name":"readJsonFile","decl":{"start":{"line":7,"column":22},"end":{"line":7,"column":34}},"loc":{"start":{"line":7,"column":51},"end":{"line":21,"column":1}}},"1":{"name":"getRuntimeDirectory","decl":{"start":{"line":23,"column":22},"end":{"line":23,"column":41}},"loc":{"start":{"line":23,"column":41},"end":{"line":41,"column":1}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":23},"end":{"line":32,"column":28}},"loc":{"start":{"line":32,"column":34},"end":{"line":39,"column":5}}},"3":{"name":"getUserAppDirectory","decl":{"start":{"line":43,"column":22},"end":{"line":43,"column":41}},"loc":{"start":{"line":43,"column":41},"end":{"line":51,"column":1}}},"4":{"name":"getSavedCredentialDirectory","decl":{"start":{"line":53,"column":22},"end":{"line":53,"column":49}},"loc":{"start":{"line":53,"column":49},"end":{"line":59,"column":1}}},"5":{"name":"isJavaInstalled","decl":{"start":{"line":61,"column":16},"end":{"line":61,"column":31}},"loc":{"start":{"line":61,"column":31},"end":{"line":75,"column":1}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":36},"end":{"line":71,"column":37}},"loc":{"start":{"line":71,"column":46},"end":{"line":71,"column":69}}}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":4},"end":{"line":31,"column":null}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":31,"column":null}}]},"1":{"loc":{"start":{"line":47,"column":4},"end":{"line":49,"column":null}},"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":49,"column":null}}]},"2":{"loc":{"start":{"line":55,"column":4},"end":{"line":57,"column":null}},"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":57,"column":null}}]},"3":{"loc":{"start":{"line":66,"column":4},"end":{"line":72,"column":null}},"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":72,"column":null}},{"start":{"line":68,"column":11},"end":{"line":72,"column":null}}]},"4":{"loc":{"start":{"line":74,"column":11},"end":{"line":74,"column":50}},"type":"binary-expr","locations":[{"start":{"line":74,"column":11},"end":{"line":74,"column":19}},{"start":{"line":74,"column":23},"end":{"line":74,"column":50}}]}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"b":{"0":[0],"1":[0],"2":[0],"3":[0,0],"4":[0,0]}} +,"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/utilities/string-builder.ts": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/utilities/string-builder.ts","statementMap":{"0":{"start":{"line":2,"column":12},"end":{"line":2,"column":35}},"1":{"start":{"line":5,"column":8},"end":{"line":5,"column":33}},"2":{"start":{"line":6,"column":8},"end":{"line":6,"column":20}},"3":{"start":{"line":9,"column":14},"end":{"line":9,"column":34}},"4":{"start":{"line":12,"column":8},"end":{"line":12,"column":37}},"5":{"start":{"line":16,"column":8},"end":{"line":16,"column":26}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}},"loc":{"start":{"line":1,"column":0},"end":{"line":18,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":4},"end":{"line":4,"column":10}},"loc":{"start":{"line":4,"column":24},"end":{"line":7,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":4},"end":{"line":9,"column":10}},"loc":{"start":{"line":9,"column":10},"end":{"line":9,"column":34}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":11,"column":4},"end":{"line":11,"column":12}},"loc":{"start":{"line":11,"column":12},"end":{"line":13,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":4},"end":{"line":15,"column":9}},"loc":{"start":{"line":15,"column":9},"end":{"line":17,"column":5}}}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0},"b":{}} +,"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/utilities/util.ts": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/src/utilities/util.ts","statementMap":{"0":{"start":{"line":11,"column":4},"end":{"line":11,"column":null}},"1":{"start":{"line":17,"column":4},"end":{"line":17,"column":34}},"2":{"start":{"line":19,"column":4},"end":{"line":19,"column":27}},"3":{"start":{"line":19,"column":21},"end":{"line":19,"column":27}},"4":{"start":{"line":21,"column":18},"end":{"line":21,"column":43}},"5":{"start":{"line":23,"column":4},"end":{"line":32,"column":null}},"6":{"start":{"line":24,"column":25},"end":{"line":24,"column":49}},"7":{"start":{"line":25,"column":21},"end":{"line":25,"column":44}},"8":{"start":{"line":27,"column":8},"end":{"line":31,"column":null}},"9":{"start":{"line":28,"column":12},"end":{"line":28,"column":77}},"10":{"start":{"line":30,"column":12},"end":{"line":30,"column":43}},"11":{"start":{"line":37,"column":4},"end":{"line":61,"column":7}},"12":{"start":{"line":40,"column":26},"end":{"line":40,"column":53}},"13":{"start":{"line":41,"column":8},"end":{"line":41,"column":55}},"14":{"start":{"line":43,"column":23},"end":{"line":43,"column":62}},"15":{"start":{"line":44,"column":24},"end":{"line":44,"column":59}},"16":{"start":{"line":46,"column":8},"end":{"line":48,"column":11}},"17":{"start":{"line":47,"column":12},"end":{"line":47,"column":26}},"18":{"start":{"line":49,"column":8},"end":{"line":52,"column":11}},"19":{"start":{"line":50,"column":12},"end":{"line":50,"column":53}},"20":{"start":{"line":51,"column":12},"end":{"line":51,"column":27}},"21":{"start":{"line":54,"column":8},"end":{"line":54,"column":29}},"22":{"start":{"line":56,"column":8},"end":{"line":58,"column":null}},"23":{"start":{"line":57,"column":12},"end":{"line":57,"column":72}},"24":{"start":{"line":60,"column":8},"end":{"line":60,"column":27}},"25":{"start":{"line":65,"column":16},"end":{"line":65,"column":17}},"26":{"start":{"line":66,"column":4},"end":{"line":74,"column":null}},"27":{"start":{"line":67,"column":8},"end":{"line":71,"column":null}},"28":{"start":{"line":68,"column":28},"end":{"line":68,"column":72}},"29":{"start":{"line":69,"column":26},"end":{"line":69,"column":67}},"30":{"start":{"line":69,"column":52},"end":{"line":69,"column":66}},"31":{"start":{"line":70,"column":12},"end":{"line":70,"column":34}},"32":{"start":{"line":73,"column":8},"end":{"line":73,"column":50}},"33":{"start":{"line":75,"column":4},"end":{"line":75,"column":null}},"34":{"start":{"line":79,"column":4},"end":{"line":79,"column":null}},"35":{"start":{"line":83,"column":4},"end":{"line":85,"column":null}},"36":{"start":{"line":84,"column":8},"end":{"line":84,"column":null}},"37":{"start":{"line":86,"column":4},"end":{"line":90,"column":null}},"38":{"start":{"line":98,"column":4},"end":{"line":108,"column":null}},"39":{"start":{"line":99,"column":8},"end":{"line":105,"column":null}},"40":{"start":{"line":100,"column":12},"end":{"line":100,"column":null}},"41":{"start":{"line":101,"column":15},"end":{"line":105,"column":null}},"42":{"start":{"line":102,"column":12},"end":{"line":102,"column":null}},"43":{"start":{"line":103,"column":15},"end":{"line":105,"column":null}},"44":{"start":{"line":104,"column":12},"end":{"line":104,"column":null}},"45":{"start":{"line":107,"column":8},"end":{"line":107,"column":null}},"46":{"start":{"line":117,"column":4},"end":{"line":129,"column":null}},"47":{"start":{"line":119,"column":8},"end":{"line":119,"column":27}},"48":{"start":{"line":120,"column":23},"end":{"line":120,"column":35}},"49":{"start":{"line":121,"column":8},"end":{"line":121,"column":29}},"50":{"start":{"line":122,"column":8},"end":{"line":122,"column":22}},"51":{"start":{"line":125,"column":8},"end":{"line":128,"column":11}}},"fnMap":{"0":{"name":"appLog","decl":{"start":{"line":10,"column":16},"end":{"line":10,"column":22}},"loc":{"start":{"line":10,"column":35},"end":{"line":12,"column":1}}},"1":{"name":"changePermissionsRecursively","decl":{"start":{"line":15,"column":22},"end":{"line":15,"column":50}},"loc":{"start":{"line":15,"column":107},"end":{"line":33,"column":1}}},"2":{"name":"zipFolder","decl":{"start":{"line":36,"column":22},"end":{"line":36,"column":31}},"loc":{"start":{"line":36,"column":109},"end":{"line":62,"column":1}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":37,"column":29},"end":{"line":37,"column":30}},"loc":{"start":{"line":37,"column":75},"end":{"line":61,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":30}},"loc":{"start":{"line":46,"column":32},"end":{"line":48,"column":9}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":49,"column":28},"end":{"line":49,"column":29}},"loc":{"start":{"line":49,"column":36},"end":{"line":52,"column":9}}},"6":{"name":"countFiles","decl":{"start":{"line":64,"column":22},"end":{"line":64,"column":32}},"loc":{"start":{"line":64,"column":52},"end":{"line":76,"column":1}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":69,"column":41},"end":{"line":69,"column":42}},"loc":{"start":{"line":69,"column":52},"end":{"line":69,"column":66}}},"8":{"name":"isFileTypeAllure","decl":{"start":{"line":78,"column":16},"end":{"line":78,"column":32}},"loc":{"start":{"line":78,"column":49},"end":{"line":80,"column":1}}},"9":{"name":"getDashboardUrl","decl":{"start":{"line":82,"column":16},"end":{"line":82,"column":31}},"loc":{"start":{"line":82,"column":102},"end":{"line":91,"column":1}}},"10":{"name":"printStats","decl":{"start":{"line":97,"column":16},"end":{"line":97,"column":26}},"loc":{"start":{"line":97,"column":46},"end":{"line":109,"column":1}}},"11":{"name":"withOra","decl":{"start":{"line":116,"column":22},"end":{"line":116,"column":29}},"loc":{"start":{"line":116,"column":73},"end":{"line":130,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":87},"end":{"line":15,"column":107}},"type":"default-arg","locations":[{"start":{"line":15,"column":106},"end":{"line":15,"column":107}}]},"1":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":27}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":27}}]},"2":{"loc":{"start":{"line":27,"column":8},"end":{"line":31,"column":null}},"type":"if","locations":[{"start":{"line":27,"column":8},"end":{"line":31,"column":null}},{"start":{"line":29,"column":15},"end":{"line":31,"column":null}}]},"3":{"loc":{"start":{"line":57,"column":43},"end":{"line":57,"column":70}},"type":"binary-expr","locations":[{"start":{"line":57,"column":43},"end":{"line":57,"column":61}},{"start":{"line":57,"column":65},"end":{"line":57,"column":70}}]},"4":{"loc":{"start":{"line":83,"column":4},"end":{"line":85,"column":null}},"type":"if","locations":[{"start":{"line":83,"column":4},"end":{"line":85,"column":null}}]},"5":{"loc":{"start":{"line":98,"column":4},"end":{"line":108,"column":null}},"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":108,"column":null}},{"start":{"line":106,"column":11},"end":{"line":108,"column":null}}]},"6":{"loc":{"start":{"line":99,"column":8},"end":{"line":105,"column":null}},"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":105,"column":null}},{"start":{"line":101,"column":15},"end":{"line":105,"column":null}}]},"7":{"loc":{"start":{"line":99,"column":12},"end":{"line":99,"column":48}},"type":"binary-expr","locations":[{"start":{"line":99,"column":12},"end":{"line":99,"column":28}},{"start":{"line":99,"column":32},"end":{"line":99,"column":48}}]},"8":{"loc":{"start":{"line":101,"column":15},"end":{"line":105,"column":null}},"type":"if","locations":[{"start":{"line":101,"column":15},"end":{"line":105,"column":null}},{"start":{"line":103,"column":15},"end":{"line":105,"column":null}}]},"9":{"loc":{"start":{"line":103,"column":15},"end":{"line":105,"column":null}},"type":"if","locations":[{"start":{"line":103,"column":15},"end":{"line":105,"column":null}}]},"10":{"loc":{"start":{"line":117,"column":4},"end":{"line":129,"column":null}},"type":"if","locations":[{"start":{"line":117,"column":4},"end":{"line":129,"column":null}},{"start":{"line":123,"column":11},"end":{"line":129,"column":null}}]}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0},"f":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"b":{"0":[0],"1":[0],"2":[0,0],"3":[0,0],"4":[0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0],"10":[0,0]}} +,"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/test/mocks/fake-args.js": {"path":"/Users/sokari/IdeaProjects/allure-firebase/apps/cli/test/mocks/fake-args.js","statementMap":{"0":{"start":{"line":1,"column":24},"end":{"line":18,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{},"inputSourceMap":null,"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"831abeccee1ccfc3efb7f0a0a1d305c6d22738aa"} } diff --git a/apps/cli/src/commands/deploy.command.ts b/apps/cli/src/commands/deploy.command.ts index decb036..a93d667 100644 --- a/apps/cli/src/commands/deploy.command.ts +++ b/apps/cli/src/commands/deploy.command.ts @@ -6,7 +6,7 @@ import fs from "fs/promises"; import path from "node:path"; import {KEY_BUCKET, KEY_PROJECT_ID, KEY_SLACK_CHANNEL, KEY_SLACK_TOKEN} from "../utilities/constants.js"; import chalk from "chalk"; -import {ArgsInterface} from "../interfaces/args.interface.js"; +import {ArgsInterface, GitHubPRUpdateType} from "../interfaces/args.interface.js"; const ERROR_MESSAGES = { EMPTY_RESULTS: "Error: The specified results directory is empty.", @@ -81,7 +81,16 @@ export function addDeployCommand(defaultProgram: Command, onCommand: (args: Args .addOption(new Option("-sc, --slack-channel ","Slack channel ID")) .addOption(new Option("-st, --slack-token ","Slack token")) .addOption(new Option("-p, --prefix ", "The storage bucket path to back up Allure results and history files")) - .addOption(new Option("--update-pr", "Update pull request with report url and info").hideHelp()) + .addOption(new Option("--update-pr ", "Update pull request with report url and info") + .default(GitHubPRUpdateType.summary.toString(), 'summary/comment').hideHelp() + .argParser((value)=> { + if(Object.values(GitHubPRUpdateType).includes(value)){ + return value + } + // Fallback to default if value is invalid + console.warn(`Invalid value "${value}" for --update-pr. Falling back to "summary".`); + return 'summary' + })) .action(async (resultPath, reportName, options) => { try { if(!isJavaInstalled()){ @@ -116,7 +125,7 @@ export function addDeployCommand(defaultProgram: Command, onCommand: (args: Args slack_channel: options.slackChannel || db.get(KEY_SLACK_CHANNEL, undefined), slack_token: options.slackToken || db.get(KEY_SLACK_TOKEN, undefined), buildUrl: getGitHubBuildUrl(), - updatePr: options.updatePr + updatePr: options.updatePr as GitHubPRUpdateType }; await onCommand(cliArgs); diff --git a/apps/cli/src/commands/version.command.ts b/apps/cli/src/commands/version.command.ts index acf3eac..9483e17 100644 --- a/apps/cli/src/commands/version.command.ts +++ b/apps/cli/src/commands/version.command.ts @@ -1,5 +1,5 @@ import {Command} from "commander"; -// ./version-update.js updates this on prepublish +// The ./version-update.cjs file rewrites this file on npm prepublish export const version = "1.0.0"; export function addVersionCommand(defaultProgram: Command) { defaultProgram.version(version).description('Allure Deployer CLI'); diff --git a/apps/cli/src/features/messaging/github-notifier.ts b/apps/cli/src/features/messaging/github-notifier.ts index f3f8f07..b03191c 100644 --- a/apps/cli/src/features/messaging/github-notifier.ts +++ b/apps/cli/src/features/messaging/github-notifier.ts @@ -1,6 +1,6 @@ import {Notifier} from "../../interfaces/notifier.interface.js"; import {NotificationData} from "../../models/notification.model.js"; -import {ArgsInterface} from "../../interfaces/args.interface.js"; +import {ArgsInterface, GitHubPRUpdateType} from "../../interfaces/args.interface.js"; import {GithubInterface} from "../../interfaces/github.interface.js"; export class GitHubNotifier implements Notifier { @@ -29,15 +29,18 @@ export class GitHubNotifier implements Notifier { |------------------------|------------------------| | ${data.resultStatus.passed} | ${data.resultStatus.broken} | `; - const promises: Promise[] = []; - promises.push(this.client.updateSummary(markdown.trim())) promises.push(this.client.updateOutput(`report_url=${data.reportUrl}`)) - const githubToken = process.env.GITHUB_TOKEN; - if (githubToken) { - promises.push(this.client.updatePr({message: markdown, token: githubToken})) + if(this.args.updatePr === GitHubPRUpdateType.comment){ + const githubToken = process.env.GITHUB_TOKEN; + if (githubToken) { + promises.push(this.client.updatePr({message: markdown, token: githubToken})) + } + } else { + promises.push(this.client.updateSummary(markdown.trim())) } + await Promise.all(promises) } } \ No newline at end of file diff --git a/apps/cli/src/interfaces/args.interface.ts b/apps/cli/src/interfaces/args.interface.ts index 195496e..9a69aba 100644 --- a/apps/cli/src/interfaces/args.interface.ts +++ b/apps/cli/src/interfaces/args.interface.ts @@ -18,5 +18,9 @@ export interface ArgsInterface { slack_channel?: string slack_token?: string buildUrl?: string; - updatePr?: boolean; + updatePr?: GitHubPRUpdateType; +} +export enum GitHubPRUpdateType { + comment, + summary } diff --git a/apps/cli/src/services/github.service.ts b/apps/cli/src/services/github.service.ts index 3b4fe41..1b43d8e 100644 --- a/apps/cli/src/services/github.service.ts +++ b/apps/cli/src/services/github.service.ts @@ -21,22 +21,21 @@ export class GitHubService implements GithubInterface { async updatePr({message, token}: { message: string, token: string }): Promise { const {owner, repo} = github.context.repo - //TODO: remove this - console.log(`Repository Owner: ${owner}`); - console.log(`Repository Name: ${repo}`); try { const pr = github.context.payload.pull_request! const octokit = github.getOctokit(token) // Update the PR body - await octokit.rest.pulls.update({ + await octokit.rest.issues.createComment({ owner, repo, - pull_number: pr.number, + issue_number: pr.number, body: message.trim(), }); console.log(`Pull Request #${pr.number} updated successfully!`); } catch (e) { console.warn('Failed to update PR:', e); + console.log(`Repository Owner: ${owner}`); + console.log(`Repository Name: ${repo}`); } } diff --git a/apps/cli/test/report-builder.test.ts b/apps/cli/test/report-builder.test.ts index 9ec5281..1abb782 100644 --- a/apps/cli/test/report-builder.test.ts +++ b/apps/cli/test/report-builder.test.ts @@ -4,7 +4,7 @@ import * as fs from "fs/promises"; import {fakeArgs} from "./mocks/fake-args.js"; import {jest} from "@jest/globals"; import {ExecutorInterface} from "../src/interfaces/executor.interface.js"; -import {AllureService} from "../src/services/allure-service.js"; +import {AllureService} from "../src/services/allure.service.js"; import {Allure} from "../src/features/allure.js"; const REPORTS_DIR = '/app/allure-reports';