oppia / oppia/oppia-web-developer-docs

Create Tutorial - How to write frontend unit tests.

Open
#380 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Impact: High Work: Medium
Dominant language
Python
Stars
18
Forks
133
PR merge metrics
No merged PRs in 30d

Description

Skills covered

TypeScript, Writing unit tests to cover all the known corner cases, Running unit tests.

Similar issues

Existing relevant pages

https://github.com/oppia/oppia/wiki/Frontend-tests

Example

Write a git patch file to remove some of the existing tests of Html-length-service file.

Scenario: You have just written code for an html-length-service file and now you need to write unit tests to cover your code. Understand the code first, try to think of general cases and then corner cases. Make sure it follows the best practices and tests running them in your local machine.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing Frontend-tests wiki page and the Html-length-service example named in the issue. Create a tutorial covering TypeScript frontend unit tests, general and corner-case coverage, and running tests locally; it is done when these topics and the stated example are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, testing
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.