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

Research and Provide a Demo of Unit Testing for front-end JavaScript code #7152

Open
9 tasks
roslynwythe opened this issue Jul 28, 2024 · 6 comments
Open
9 tasks
Assignees
Labels
Complexity: Large Feature: Infrastructure For changes on site technical architecture role: back end/devOps Tasks for back-end developers size: 2pt Can be done in 7-12 hours Status: Updated No blockers and update is ready for review

Comments

@roslynwythe
Copy link
Member

roslynwythe commented Jul 28, 2024

Overview

We need to select a strategy and a test framework for running unit tests against the front-end JavaScript code in the HfLA website, so that tests can be run first locally and then ultimately as a Pull Request check, in order to ensure the quality of JavaScript code updates. In this issue several sample unit tests will be developed and will be run locally from the command line.

Action Items

  • Select one of the following JS test frameworks: Jest, Mocha and Jasmine. Consider:
    • widely-used JS test framework suitable for invoking tests against JavaScript code on a Jekyll site
    • Ideally tests could be run either locally or in the context of GitHub PR checkes
  • Provide comments documenting the selection, installation and configuration of the test framework
    • In a new git branch, create a folder under the website root named unittests-JSfrontend
    • In the new folder create several unit tests. Provide comments describing your reasoning for selection of unit tests.
    • Invoke the tests from the command line
    • provide comments documenting the commands for running the tests
    • Submit a pull request, and provide links to the relevant comments that will be useful for reviewers.

Resources/Instructions

https://jasmine.github.io/
[How to Test a GitHub Action with GitHub Actions]

@HackforLABot

This comment has been minimized.

@HackforLABot

This comment has been minimized.

@FamousHero FamousHero removed their assignment Sep 22, 2024
@FamousHero FamousHero self-assigned this Nov 1, 2024
@HackforLABot

This comment has been minimized.

@FamousHero FamousHero moved this from Prioritized backlog to In progress (actively working) in P: HfLA Website: Project Board Nov 1, 2024
@HackforLABot HackforLABot added the To Update ! No update has been provided label Nov 8, 2024
@HackforLABot
Copy link
Contributor

@FamousHero

Please add update using the below template (even if you have a pull request). Afterwards, remove the 'To Update !' label and add the 'Status: Updated' label.

  1. Progress: "What is the current status of your project? What have you completed and what is left to do?"
  2. Blockers: "Difficulties or errors encountered."
  3. Availability: "How much time will you have this week to work on this issue?"
  4. ETA: "When do you expect this issue to be completed?"
  5. Pictures (optional): "Add any pictures of the visual changes made to the site so far."

If you need help, be sure to either: 1) place your issue in the Questions/In Review column of the Project Board and ask for help at your next meeting, 2) put a "Status: Help Wanted" label on your issue and pull request, or 3) put up a request for assistance on the #hfla-site channel. Please note that including your questions in the issue comments- along with screenshots, if applicable- will help us to help you. Here and here are examples of well-formed questions.

You are receiving this comment because your last comment was before Monday, November 4, 2024 at 11:04 PM PST.

@HackforLABot HackforLABot added 2 weeks inactive An issue that has not been updated by an assignee for two weeks and removed To Update ! No update has been provided labels Nov 15, 2024
@HackforLABot
Copy link
Contributor

@FamousHero

Please add update using the below template (even if you have a pull request). Afterwards, remove the '2 weeks inactive' label and add the 'Status: Updated' label.

  1. Progress: "What is the current status of your project? What have you completed and what is left to do?"
  2. Blockers: "Difficulties or errors encountered."
  3. Availability: "How much time will you have this week to work on this issue?"
  4. ETA: "When do you expect this issue to be completed?"
  5. Pictures (optional): "Add any pictures of the visual changes made to the site so far."

If you need help, be sure to either: 1) place your issue in the Questions/In Review column of the Project Board and ask for help at your next meeting, 2) put a "Status: Help Wanted" label on your issue and pull request, or 3) put up a request for assistance on the #hfla-site channel. Please note that including your questions in the issue comments- along with screenshots, if applicable- will help us to help you. Here and here are examples of well-formed questions.

You are receiving this comment because your last comment was before Monday, November 11, 2024 at 11:04 PM PST.

@FamousHero
Copy link
Member

Progress:  Scheduling meetings & talking to people with testing experience. Currently leaning towards Jest.
Blockers: Finding people with experience with the frameworks for opinions & nuances
Availability: Mon-Fri : 5-8pm (11/18-11/22)
ETA: 11/24/24 
Pictures (optional): "Add any pictures of the visual changes made to the site so far."

@FamousHero FamousHero added Status: Updated No blockers and update is ready for review and removed 2 weeks inactive An issue that has not been updated by an assignee for two weeks labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Large Feature: Infrastructure For changes on site technical architecture role: back end/devOps Tasks for back-end developers size: 2pt Can be done in 7-12 hours Status: Updated No blockers and update is ready for review
Projects
Status: In progress (actively working)
Development

No branches or pull requests

4 participants