-
-
Notifications
You must be signed in to change notification settings - Fork 850
Open
Labels
Complexity: LargeFeature: InfrastructureFor changes on site technical architectureFor changes on site technical architecturerole: back end/devOpsTasks for back-end developersTasks for back-end developerssize: 2ptCan be done in 7-12 hoursCan be done in 7-12 hours
Milestone
Description
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.
- In a new git branch, create a folder under the website root named
Resources/Instructions
https://jasmine.github.io/
[How to Test a GitHub Action with GitHub Actions]
- This issue is a follow-up to Research and Provide a Demo of Unit Test Implementation for HfLA Repo #2249
Metadata
Metadata
Assignees
Labels
Complexity: LargeFeature: InfrastructureFor changes on site technical architectureFor changes on site technical architecturerole: back end/devOpsTasks for back-end developersTasks for back-end developerssize: 2ptCan be done in 7-12 hoursCan be done in 7-12 hours
Type
Projects
Status
In progress (actively working)