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: README.md
+7-14Lines changed: 7 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,13 @@
7
7
## Introduction
8
8
9
9
Array manipulation is a common task in programming. Whether you are calculating a total for a shopping cart, grabbing only the first names from a list of people, or moving a piece on a chessboard, you are probably modifying or manipulating an array somewhere in the code.
10
+
<br>
10
11
11
12
## Requirements
12
13
13
14
- Fork this repo
14
15
- Clone it to your machine
15
-
16
+
<br>
16
17
17
18
18
19
## Submission
@@ -26,9 +27,6 @@ git push origin master
26
27
```
27
28
28
29
- Create a Pull Request so that your TAs can check your work.
29
-
30
-
31
-
32
30
<br>
33
31
34
32
@@ -42,20 +40,19 @@ Automated software testing is the process of programmatically executing an appli
42
40
Testing should be viewed as a continuous process, not a discrete operation or single activity in the development lifecycle. Designing tests at the beginning of the product lifecycle can be help to mitigate common issues that arise when developing complex code bases.
43
41
44
42
Having a strong *test suite* can provide you ease of mind, since you will be able to confidently improve upon your work while knowing that your not breaking a previously developed feature.
43
+
<br>
45
44
46
45
### Testing labs
47
46
48
47
This LAB, along with some of the labs you will be working on during the bootcamp, is equipped with unit tests to provide automated feedback on your lab progress.
49
-
50
-
48
+
<br>
51
49
52
50
### Testing with Jasmine
53
51
54
52
Jasmine is an automated testing framework for JavaScript. It is designed to be used in Behavior-driven Development (**BDD**) programming, which focuses more on the business value than on the technical details.
55
53
56
54
We have already included Jasmine in the project you just forked, so let's see how to use it to implement our code.
57
-
58
-
55
+
<br>
59
56
60
57
### Usage
61
58
@@ -78,15 +75,13 @@ We will be working with the `src/functions-and-arrays.js`. In the `jasmine` fold
78
75
In case you want to check the tests, they are in the `tests/functions-and-arrays.spec.js` file.
79
76
80
77
81
-
82
78
#### Run tests
83
79
84
80
Running automated tests with Jasmine is super easy. All you need to do is open the `SpecRunner.html` file in your browser. You will find something similar to this:
You should write your code on the `src/functions-and-arrays.js` file. While following the instructions for each iteration, you should check every test and make sure it's *passing*, before moving on.
@@ -100,16 +95,14 @@ To see output of your JavaScript code open the [Console in the Developer Tools](
100
95
101
96
102
97
**Important:** Note that **you don't need to execute the functions yourself**; the tests will automatically load and execute the functions on each test run. All you need to do is declare the functions, ensure that they handle the parameters passed, and that they return what is indicated in the iteration instructions and the test description. For some iterations we provide you with a sample array, so that you can do some **manual** testing, if you wish.
103
-
98
+
<br>
104
99
105
100
106
101
## Instructions
107
102
108
103
While following the instructions for each iteration, make sure to carefully read the instructions and tests descriptions to fully understand the task requirements. Do not rush. You should take your time to carefully read every iteration.
0 commit comments