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

Add unit tests #75

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

neehar18
Copy link

@neehar18 neehar18 commented Oct 10, 2024

Fixes #49

@fbricon
Copy link
Collaborator

fbricon commented Oct 10, 2024

can you update the CI workflow so react tests are run?

@neehar18
Copy link
Author

@fbricon can you explain what you meant by updating the CI workflow?

@fbricon
Copy link
Collaborator

fbricon commented Oct 16, 2024

update https://github.com/redhat-developer/vscode-granite/blob/main/.github/workflows/build.yaml so that tests are run by the CI agent

@neehar18
Copy link
Author

@fbricon this line in the existing build.yaml should trigger the unit tests that I added

@fbricon
Copy link
Collaborator

fbricon commented Oct 17, 2024

@neehar18 no. You can try running "npm test" at the root of the project and see if your react tests are run

@fbricon
Copy link
Collaborator

fbricon commented Oct 17, 2024

also please fix the conflicts

@neehar18
Copy link
Author

@fbricon got it. I'll make the necessary changes and update the PR.

Also, when do you want the tests to be run? Before building extension and generating vsix pkg or after?

@fbricon
Copy link
Collaborator

fbricon commented Oct 17, 2024

after packaging, so we can still test the vsix even if there's a failure

Venkata Neehar Kurukunda and others added 2 commits October 21, 2024 20:03
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test results don't belong in this repo.

please add it to .gitignore so it's excluded

@@ -3,6 +3,7 @@ import "./App.css";
import { useCallback, useEffect, useState } from "react";
import ModelList, { ModelOption } from "./ModelList";
import { ProgressData } from "../../src/commons/progressData";
import React from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems unnecessary

@@ -1,3 +1,4 @@
import React from "react";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems unnecessary

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

Successfully merging this pull request may close these issues.

Setup tests
2 participants