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
This is the main repo for all the sample code used in the scala tutorials.
5
+
6
+
# Compiling and Running Tests
7
+
This repo uses a multi-module build with many sub modules.
8
+
To compile the entire module, you may use the command `sbt compile`. However, this loads all the modules and compiles all of them, which might take some time.
9
+
If you are interested in only a particular module, you can compile it by starting sbt shell and using the command `<sub-module-name>/compile`.
10
+
Similarly, you can run the tests per module as `<module-name>/test`.
11
+
12
+
Here are some of the useful commands that can be used within tbe sbt shell
| project <sub-module-name> | Switch to a particular module. After this, the command `compile`, `test` etc runs only on that module |
17
+
| <sub-module>/compile | Compile only the provided module |
18
+
| projects | Lists all the sub modules |
19
+
| <sub-module>/run | Run the main class within the sub-module |
2
20
21
+
# Test Naming Standards
3
22
In this repository, we have classified the tests in 4 categories.
4
23
5
24
| Category | Description |
@@ -21,6 +40,6 @@ Note that these commands are defined at the root level of the project and hence
21
40
| Live Test |`sbt liveTests`|`src/it/scala` or `src/it/scala-2`| Test class name must end with `LiveTest`|
22
41
| Manual Test |`sbt manualTests`|`src/it/scala` or `src/it/scala-2`| Test class name must end with `ManualTest`|
23
42
24
-
# Code fomatting
43
+
# Code formatting
25
44
26
-
Before creating a PR, make sure the code is correctly formatted running `sbt scalafmt`.
45
+
Before creating a PR, run `sbt scalafmtAll` to automatically format the entire codebase. To check if there are any formatting issues(without fixing them), you may run `sbt scalafmtCheckAll`
Copy file name to clipboardExpand all lines: scala-core-8/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -7,3 +7,4 @@
7
7
-[Get Difference Between Two Dates](https://www.baeldung.com/scala/difference-between-two-dates)
8
8
-[The Either Type in Scala](https://www.baeldung.com/scala/either-type)
9
9
-[Understanding the Differences: reduceLeft, reduceRight, foldLeft, foldRight, scanLeft, and scanRight in Scala](https://www.baeldung.com/scala/reduce-fold-scan-left-right)
10
+
-[Different Ways to Reverse a Sequence in Scala](https://www.baeldung.com/scala/reverse-sequence)
0 commit comments