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
Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@
7
7
8
8
---
9
9
10
-
<!-- Please make sure you're satisfy and fill the following checkboxes -->
10
+
<!-- Please make sure you're satisfied and fill in the following checkboxes -->
11
11
<!-- A good PR should include the following parts: -->
12
12
13
13
-[ ] A clear title (name your PR "[LAB{lab_number}] {your_student_id}")
14
14
-[ ] A meaningful message for PR, as well as its commits
15
15
-[ ] From your specific branch (***not main or other's branch***) merging to your branch
16
16
-[ ] Excluding any irrelevant files, such as binaries, text files, or dot files
17
-
-[ ] Passing all CI
17
+
-[ ] Passing all CI (You should check it first to pass one of the validations in CI. However, you need to make sure your PR passes all CI after you submit it.)
Copy file name to clipboardExpand all lines: lab1/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Introduction
4
4
5
-
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 `main.js.` (But remember don't commit them on GitHub)
5
+
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)
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
+
## Requirement
8
+
9
+
1. Write test cases in `main_test.js` and achieve 100% code coverage. Remember to use Mock, Spy, or Stub when necessary, you need to at least use one of them in your test cases. (100%)
10
+
11
+
You can run `validate.sh` in your local to test if you satisfy the requirements.
12
+
13
+
Please note that you must not alter files other than `main_test.js`. You will get 0 points if
14
+
15
+
1. you modify other files to achieve requirements.
16
+
2. you can't pass all CI on your PR.
17
+
18
+
## Submission
19
+
20
+
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.
21
+
22
+
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