Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Upgrade Allure
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsManta committed Jan 13, 2024
1 parent 8a09ef9 commit 6c4d51f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"dependencies": {
"@types/cosmiconfig": "^5.0.3",
"allure-js-commons": "^2.0.0-beta.7",
"allure-js-commons": "^2.10.0",
"chalk": "^2.4.1",
"co": "^4.6.0",
"cosmiconfig": "^5.0.7",
Expand Down
10 changes: 5 additions & 5 deletions src/createReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { createHash } from 'crypto'
import singletonAllureInstance from './singletonAllureInstance'
import {
AllureRuntime,
IAllureConfig,
AllureConfig,
ExecutableItemWrapper,
AllureTest,
AllureStep,
Stage,
Status,
LabelName,
AllureGroup
AllureGroup,
FileSystemAllureWriter
} from 'allure-js-commons'
import { hostname } from 'os'
import { AllureWriter } from 'allure-js-commons/dist/src/writers'
import { StepName } from './StepName'
import { IStep, ITestReporter, IConfig } from './types'
import { isPendingError } from './PendingError'
Expand Down Expand Up @@ -48,8 +48,8 @@ class AllureTestReporter implements ITestReporter {
.update([suiteName, caseName].join(' / '))
.digest('hex')

const allureConfig: IAllureConfig = { resultsDir }
const writer = new AllureWriter(allureConfig)
const allureConfig: AllureConfig = { resultsDir }
const writer = new FileSystemAllureWriter(allureConfig)
const runtime = new AllureRuntime({ ...allureConfig, writer })
const group = runtime.startGroup(suiteName)
const test = group.startTest(caseName)
Expand Down
15 changes: 4 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1607,14 +1607,12 @@ allure-commandline@^2.13.0:
resolved "https://registry.yarnpkg.com/allure-commandline/-/allure-commandline-2.13.0.tgz#54d77ab8733ded6a8fe2379b60213cd00f5c6425"
integrity sha512-KUByc0nT+vVVsnW/p36R92+FS2o3xVX27p+AW/8T4dlXVh7jx6V0v6+rRBCpK7AhBKD9/T3jsSq14hS0sxp64Q==

allure-js-commons@^2.0.0-beta.7:
version "2.0.0-beta.7"
resolved "https://registry.yarnpkg.com/allure-js-commons/-/allure-js-commons-2.0.0-beta.7.tgz#1a81ca53a67df5d0ad5a26b161bfcd8094c03c82"
integrity sha512-mTHr1RntyvxXXaqdj94DqtanVUozKXQVNOhuKwqOvbPHKRUd6DIeW0WjPXCTag4NE/jx/FO/MVPErYutbGwOUA==
allure-js-commons@^2.10.0:
version "2.10.0"
resolved "https://registry.yarnpkg.com/allure-js-commons/-/allure-js-commons-2.10.0.tgz#59edd18ac283bd58d848e47fc7e625342921a43a"
integrity sha512-DgACWBU2dchQD8tQOo5Y0MXx08SSzdgCnKBdwrOu29vITYBXih+0r8SbmrFYQhjAbn8eKMM+mXq+rKtjZRa2oA==
dependencies:
mkdirp "^0.5.1"
properties "^1.2.1"
uuid "^7.0.2"

alphanum-sort@^1.0.0:
version "1.0.2"
Expand Down Expand Up @@ -9895,11 +9893,6 @@ uuid@^3.3.2, uuid@^3.4.0:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==

uuid@^7.0.2:
version "7.0.3"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b"
integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==

v8-compile-cache@^2.0.3:
version "2.1.1"
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz#54bc3cdd43317bca91e35dcaf305b1a7237de745"
Expand Down

0 comments on commit 6c4d51f

Please sign in to comment.