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

Running tests generates an error #125

Open
richardgroves opened this issue Apr 22, 2024 · 0 comments
Open

Running tests generates an error #125

richardgroves opened this issue Apr 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@richardgroves
Copy link

Describe the bug

Following the steps in the contributing guide - https://github.com/rubberduck-ai/rubberduck-vscode/blob/main/CONTRIBUTING.md
I installed code, did the installs and build then tried to run the tests, and got an error.

How to reproduce

git clone [email protected]:rubberduck-ai/rubberduck-vscode.git
cd rubberduck-vscode
pnpm install
pnpm build-all

pnpm test

Expected behavior

Test complete successfuly

Screenshots

➜  rubberduck-vscode git:(main) ✗ pnpm test

> [email protected] test /private/tmp/RD/rubberduck-vscode
> pnpm nx run extension:test


> nx run extension:test

> @rubberduck/[email protected] test /private/tmp/RD/rubberduck-vscode/lib/extension
> vitest run src/
 RUN  v0.28.3 /private/tmp/RD/rubberduck-vscode/lib/extension
filter:  src/
include: **/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}
exclude:  **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*
watch exclude:  **/node_modules/**, **/dist/**

No test files found, exiting with code 1
 ELIFECYCLE  Test failed. See above for more details.

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Ran target undefined for project extension (986ms)
 
    ✖    1/1 failed
    ✔    0/1 succeeded [0 read from cache]
 
 ELIFECYCLE  Test failed. See above for more details.

➜  rubberduck-vscode git:(main) ✗ 

Additional information

  • Version of the extension impacted: 1.21.0 (repo as 22 April 2024)

My guess is that there isn't actually and test code in the extension/src folder so the test run is actually correct. In that case the guide should remove the 'Run Tests' step. OR I need to deploy the extension first/run under vscode?

@richardgroves richardgroves added the bug Something isn't working label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant