Skip to content

Commit 6496018

Browse files
added the test summary reports
1 parent e8a4e86 commit 6496018

9 files changed

+87
-3
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,3 @@ dist
123123
.disclaimer
124124
@assignment*
125125
.dist/
126-
.test-summary/
127-
1-JavaScript/Week2/test-reports/
128-

.test-summary/TEST_SUMMARY.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Test Summary
2+
3+
**Mentors**: For more information on how to review homework assignments, please refer to the [Review Guide](https://github.com/HackYourFuture/mentors/blob/main/assignment-support/review-guide.md).
4+
5+
### 1-JavaScript - Week2
6+
7+
| Exercise | Passed | Failed | ESLint |
8+
|----------------------|--------|--------|--------|
9+
| ex1-giveCompliment | 7 | - ||
10+
| ex2-dogYears | 7 | - ||
11+
| ex3-tellFortune | 10 | - ||
12+
| ex4-shoppingCart | - | - ||
13+
| ex5-shoppingCartPure | - | - ||
14+
| ex6-totalCost | - | - ||
15+
| ex7-mindPrivacy | - | - ||
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*** Unit Test Error Report ***
2+
3+
PASS .dist/1-JavaScript/Week2/unit-tests/ex1-giveCompliment.test.js
4+
js-wk2-ex1-giveCompliment
5+
✅ should exist and be executable (3 ms)
6+
✅ should have all TODO comments removed (1 ms)
7+
✅ `giveCompliment` should not contain unneeded console.log calls (2 ms)
8+
✅ should take a single parameter (1 ms)
9+
✅ should include a `compliments` array inside its function body (1 ms)
10+
✅ the `compliments` array should be initialized with 10 strings
11+
✅ should give a random compliment: You are `compliment`, `name`! (1 ms)
12+
13+
Test Suites: 1 passed, 1 total
14+
Tests: 7 passed, 7 total
15+
Snapshots: 0 total
16+
Time: 1.992 s
17+
Ran all test suites matching /\/Users\/hackyourfuture\/Desktop\/Assignments-cohort51\/.dist\/1-JavaScript\/Week2\/unit-tests\/ex1-giveCompliment.test.js/i.
18+
No linting errors detected.
19+
No spelling errors detected.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*** Unit Test Error Report ***
2+
3+
PASS .dist/1-JavaScript/Week2/unit-tests/ex2-dogYears.test.js
4+
js-wk2-ex2-dogYears
5+
✅ should exist and be executable (3 ms)
6+
✅ should have all TODO comments removed
7+
✅ `calculateDogAge` should not contain unneeded console.log calls (2 ms)
8+
✅ should take a single parameter (1 ms)
9+
✅ should give 7 dog years for 1 human year (1 ms)
10+
✅ should give 14 dog years for 2 human years
11+
✅ give 21 dog years for 3 human years
12+
13+
Test Suites: 1 passed, 1 total
14+
Tests: 7 passed, 7 total
15+
Snapshots: 0 total
16+
Time: 1.667 s
17+
Ran all test suites matching /\/Users\/hackyourfuture\/Desktop\/Assignments-cohort51\/.dist\/1-JavaScript\/Week2\/unit-tests\/ex2-dogYears.test.js/i.
18+
No linting errors detected.
19+
No spelling errors detected.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
*** Unit Test Error Report ***
2+
3+
PASS .dist/1-JavaScript/Week2/unit-tests/ex3-tellFortune.test.js
4+
js-wk2-ex3-tellFortune
5+
✅ should exist and be executable (3 ms)
6+
✅ should have all TODO comments removed (1 ms)
7+
✅ `tellFortune` should not contain unneeded console.log calls (1 ms)
8+
✅ should take four parameters (1 ms)
9+
✅ should call function `selectRandomly` for each of its arguments (1 ms)
10+
✅ `numKids` should be an array initialized with 5 elements (1 ms)
11+
✅ `locations` should be an array initialized with 5 elements (1 ms)
12+
✅ `partnerNames` should be an array initialized with 5 elements
13+
✅ `jobTitles` should be an array initialized with 5 elements
14+
✅ should tell the fortune by randomly selecting array values (1 ms)
15+
16+
Test Suites: 1 passed, 1 total
17+
Tests: 10 passed, 10 total
18+
Snapshots: 0 total
19+
Time: 1.505 s
20+
Ran all test suites matching /\/Users\/hackyourfuture\/Desktop\/Assignments-cohort51\/.dist\/1-JavaScript\/Week2\/unit-tests\/ex3-tellFortune.test.js/i.
21+
No linting errors detected.
22+
No spelling errors detected.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A unit test file was not provided for this exercise.
2+
No linting errors detected.
3+
No spelling errors detected.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A unit test file was not provided for this exercise.
2+
No linting errors detected.
3+
No spelling errors detected.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A unit test file was not provided for this exercise.
2+
No linting errors detected.
3+
No spelling errors detected.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A unit test file was not provided for this exercise.
2+
No linting errors detected.
3+
No spelling errors detected.

0 commit comments

Comments
 (0)