You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this lab, you will write unit tests for functions implemented in `main.js`. You can learn how to use classes and functions in it by uncommenting the code in it. (But remember don't commit them on GitHub)
6
+
7
+
## Preparation (Important!!!)
8
+
9
+
1. Sync fork your branch (e.g., `SQLab:311XXXXXX`)
10
+
2.`git checkout 311XXXXXX`
11
+
3.`git pull`
12
+
4.`git checkout -b lab3` (**NOT** your student ID !!!)
13
+
14
+
## Requirement
15
+
16
+
1. (40%) Write test cases in `main_test.js` and achieve 100% code coverage.
17
+
2. (30%) For each function, parameterize its testcases to test the error-results.
18
+
3. (30%) For each function, use at least 3 parameterized testcases to test the non-error-results.
19
+
20
+
You can run `validate.sh` in your local to test if you satisfy the requirements.
21
+
22
+
Please note that you must not alter files other than `main_test.js`. You will get 0 points if
23
+
24
+
1. you modify other files to achieve requirements.
25
+
2. you can't pass all CI on your PR.
26
+
27
+
## Submission
28
+
29
+
You need to open a pull request to your branch (e.g. 311XXXXXX, your student number) and contain the code that satisfies the abovementioned requirements.
30
+
31
+
Moreover, please submit the URL of your PR to E3. Your submission will only be accepted when you present at both places.
In this lab, you will write tests in `main_test.js`. You can learn how to use [Puppeteer](https://pptr.dev/) to tests a web UI.
6
+
7
+
## Preparation (Important!!!)
8
+
9
+
1. Sync fork your branch (e.g., `SQLab:311XXXXXX`)
10
+
2.`git checkout -b lab4` (**NOT** your student ID !!!)
11
+
12
+
## Requirement
13
+
14
+
1. (100%) Goto https://pptr.dev/, type `chipi chipi chapa chapa` into the search box, click on **1st** result in the **Docs** section, and print the title.
15
+
16
+
For the detailed steps and hints, please check the slide of this lab.
17
+
18
+
You can run `validate.sh` in your local to test if you satisfy the requirements.
19
+
20
+
Please note that you must not alter files other than `main_test.js`. You will get 0 points if
21
+
22
+
1. you modify other files to achieve requirements.
23
+
2. you can't pass all CI on your PR.
24
+
25
+
## Submission
26
+
27
+
You need to open a pull request to your branch (e.g. 311XXXXXX, your student number) and contain the code that satisfies the abovementioned requirements.
28
+
29
+
Moreover, please submit the URL of your PR to E3. Your submission will only be accepted when you present at both places.
0 commit comments