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

Jest tests on UI #6751

Merged
merged 8 commits into from
Jan 31, 2023
Merged

Jest tests on UI #6751

merged 8 commits into from
Jan 31, 2023

Conversation

ylavoie
Copy link
Contributor

@ylavoie ylavoie commented Sep 4, 2022

This PR adds:

  • Jest setup to test JavaScript code for the UI
  • Reporting of said tests to Coveralls to document coverage
  • Tests for LoginPage
    Jest testing isolates the UI and mock all server interaction, allowing robust, repetitive and quick tests

@ylavoie ylavoie added the waiting-for-user Issue can't progress unless feedback from reporter is received label Sep 4, 2022
@ylavoie ylavoie removed the waiting-for-user Issue can't progress unless feedback from reporter is received label Sep 4, 2022
@ylavoie ylavoie added waiting-for-user Issue can't progress unless feedback from reporter is received and removed waiting-for-user Issue can't progress unless feedback from reporter is received labels Sep 5, 2022
@ylavoie ylavoie added the waiting-for-user Issue can't progress unless feedback from reporter is received label Sep 8, 2022
@ylavoie ylavoie removed the waiting-for-user Issue can't progress unless feedback from reporter is received label Oct 17, 2022
@ehuelsmann ehuelsmann added the waiting-for-user Issue can't progress unless feedback from reporter is received label Oct 29, 2022
.github/workflows/main.yml Outdated Show resolved Hide resolved
.circleci/config.yml Show resolved Hide resolved
.circleci/config.yml Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
@ehuelsmann
Copy link
Member

@ylavoie is this really ready for merging? Or is this branch still waiting for Coveralls?

@ylavoie
Copy link
Contributor Author

ylavoie commented Nov 26, 2022

@ylavoie is this really ready for merging? Or is this branch still waiting for Coveralls?

@ylavoie is this really ready for merging? Or is this branch still waiting for Coveralls?

I was waiting. They answered 5 days ago, see lemurheavy/coveralls-public#1662. I'll fix that.

@github-actions github-actions bot removed the waiting-for-user Issue can't progress unless feedback from reporter is received label Nov 26, 2022
@ylavoie
Copy link
Contributor Author

ylavoie commented Jan 30, 2023

@ylavoie is this really ready for merging? Or is this branch still waiting for Coveralls?

Seems ok now

Copy link
Member

@ehuelsmann ehuelsmann left a comment

Choose a reason for hiding this comment

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

.

@@ -125,16 +125,19 @@ jobs:
postgres: "13"
BROWSER: "chrome"
COVERAGE: 1
JOB_COUNT: 2
Copy link
Member

Choose a reason for hiding this comment

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

This changes the build matrix, which means adjustment is required for the required jobs on branch protection...

@ylavoie ylavoie merged commit 80a882a into ledgersmb:master Jan 31, 2023
@ylavoie ylavoie deleted the jest branch January 31, 2023 23:02
ylavoie added a commit to ylavoie/LedgerSMB that referenced this pull request Jan 31, 2023
* Add jest

* Simplify GitHub Actions

* Coverage with local perl

* Do not collect coverage from tests themselves

* Ignore coverage in project sources

* Fix devel option

* Move UI tests to UI

* Freshen package-lock
ylavoie added a commit to ylavoie/LedgerSMB that referenced this pull request Feb 3, 2023
* Add jest

* Simplify GitHub Actions

* Coverage with local perl

* Do not collect coverage from tests themselves

* Ignore coverage in project sources

* Fix devel option

* Move UI tests to UI

* Freshen package-lock
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.

None yet

2 participants