![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
testcafe-reporter-allure
Advanced tools
Allure is a reporter for testcafe. It publishes visual reports for testcafe tests.
This is the allure reporter plugin for TestCafe. This is used to generate allure visual reports for testcafe test execution.
npm install testcafe-reporter-allure
When you run tests from the command line, specify the reporter name by using the --reporter
option:
testcafe chrome 'path/to/test/file.js' --reporter allure
When you use API, pass the reporter name to the reporter()
method:
testCafe
.createRunner()
.src('path/to/test/file.js')
.browsers('chrome')
.reporter('allure') // <-
.run();
The below severities are supported by this reporter.
blocker, critical, normal, minor, trivial
To specify test severity, test id, story id, or run id, use test meta options.
test
.meta({
ID: 'test id',
SEVERITY: 'blocker',
STORY: 'story id',
TEST_RUN: 'test run id or identifier'
})
.before(async t => {
// before test code
})('Test description', async t => {
// Test code
});
Run id TEST_RUN
can be specified in fixture meta. If run id is specified in fixture meta, it will discard the run id from test meta.
To add information to environment widget, just create environment.xml file to allure-results directory before report generation.
<environment>
<parameter>
<key>Browser</key>
<value>Chrome</value>
</parameter>
<parameter>
<key>Browser.Version</key>
<value>63.0</value>
</parameter>
<parameter>
<key>Stand</key>
<value>Production</value>
</parameter>
</environment>
To add an information about your test executor create a file executor.json in your allure-results:
{
"name": "Jenkins",
"type": "jenkins",
"url": "http://example.org",
"buildOrder": 1,
"buildName": "allure-report_deploy#1",
"buildUrl": "http://example.org/build#1",
"reportUrl": "http://example.org/build#1/AllureReport",
"reportName": "Demo allure report"
}
To override default configurationn, create a doc-allure-config.js file in the root directory of your project and put below content in that file.
const DOC_ALLURE_CONFIG = {
CLEAN_REPORT_DIR: false,
COPY_HISTORY: true,
RESULT_DIR: '/allure/allure-results',
REPORT_DIR: '/allure/allure-report',
META: {
STORY_ID: 'STORY',
TEST_ID: 'ID',
SEVERITY: 'SEVERITY',
TEST_RUN: 'TEST_RUN'
},
STORY_LABEL: 'JIRA Story Link',
STORY_URL: 'https://jira.example.ca/browse/{{ID}}',
TEST_LABEL: 'JIRA Test Link',
TEST_URL: 'https://jira.example.ca/secure/Tests.jspa#/testCase/{{ID}}',
labels: {
screenshotLabel: 'Screenshot',
browserLabel: 'Browser',
userAgentLabel: 'User Agent',
allureStartMessage: 'Allure reporter started...',
allureClosedMessage: 'Allure reporter closed...'
}
};
module.exports = DOC_ALLURE_CONFIG;
After running testcafe tests, it should generate a folder allure/allure-results
in your project root directory.
Install allure-commandline module to your project.
npm install -g allure-commandline
Run below command to view allure report.
allure generate allure/allure-results --clean -o allure/allure-report && allure open allure/allure-report
FAQs
Allure is a reporter for testcafe. It publishes visual reports for testcafe tests.
The npm package testcafe-reporter-allure receives a total of 2,706 weekly downloads. As such, testcafe-reporter-allure popularity was classified as popular.
We found that testcafe-reporter-allure demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.