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

no test results #14

Closed
kodmis opened this issue Mar 13, 2019 · 6 comments
Closed

no test results #14

kodmis opened this issue Mar 13, 2019 · 6 comments

Comments

@kodmis
Copy link

kodmis commented Mar 13, 2019

C:\Users\kodmis\Documents\webprojects\fs-vue-template>npm t

[email protected] test C:\Users\kodmis\Documents\webprojects\fs-vue-template
jest --config test/jest.conf.js

PASS test/specs/components/HelloWorld.spec.js
HelloWorld.vue
√ contains header "Welcome to Your Vue.js App" (16ms)

Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 4.807s
Ran all test suites.

C:\Users\kodmis\Documents\webprojects\fs-vue-template>dir allure*

Volume in drive C is OSDisk
Volume Serial Number is 38F1-E399

Directory of C:\Users\kodmis\Documents\webprojects\fs-vue-template

File Not Found

C:\Users\kodmis\projects\fs-vue-template>allure generate

allure-results does not exists
Report successfully generated to allure-report

C:\Users\kodmis\Documents\webprojects\fs-vue-template>type test\jest.conf.js

const path = require('path');

module.exports = {
rootDir: path.resolve(__dirname, '../'),
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^@/(.)$': '/src/$1',
},
transform: {
'^.+\.js$': '/node_modules/babel-jest',
'.
\.(vue)$': '/node_modules/vue-jest',
},
reporters: ["jest-allure", "default"],

};

@akaguny
Copy link

akaguny commented Apr 16, 2019

show HelloWorld.spec.js, version jest

@kevinoliveira
Copy link

kevinoliveira commented Jun 2, 2019

i have the same issue.

jest allure
image

jest default report
image

Versions:

  • "jest": "^24.8.0",
  • "jest-allure": "^0.1.1",
  • allure 2.4.1

jest.config.js

module.exports = {
    reporters: ["default", "jest-allure","jest-stare"],
};

note: another third party jest reports works without problem.

@akaguny
Copy link

akaguny commented Jun 3, 2019

@kevinoliveira , pls see this #15

@kevinoliveira
Copy link

i saw the issue you linked and i could not get it to work.

i added globalSetup to my jest.config.js

module.exports = {
    reporters: ["default", "jest-allure","jest-stare"],
    globalSetup: "jest-allure/dist/setup"
};

and this is what i get when i run tests

ReferenceError: jasmine is not defined
    at registerAllureReporter (/home/USER/PROJECT/node_modules/jest-allure/dist/setup.js:46:5)
    at Object.<anonymous> (/home/USER/PROJECT/node_modules/jest-allure/dist/setup.js:49:1)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Object.newLoader [as .js] (/home/USER/PROJECT/node_modules/pirates/lib/index.js:104:7)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)

i tried with setupFiles and setupFilesAfterEnv but i got the same results.

@kevinoliveira
Copy link

kevinoliveira commented Jun 3, 2019

this is the same problem addressed in #8 .
i believe is better to continue the discussion there.

@zaqqaz
Copy link
Owner

zaqqaz commented Jun 4, 2019

Let's continue in #8 .

@zaqqaz zaqqaz closed this as completed Jun 4, 2019
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

4 participants