diff --git a/README.md b/README.md index 9e4d4e7..70ed5b7 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,19 @@ -[Presentation](https://github.2rioffice.com/pages/barys/ltk-props-testing/) +[Presentation](https://biscout24.github.io/ltk-props-testing/) To run it locally [install nodejs](http://nodejs.org/) and -```bash +```shell script cd ./docs npm install npm start +``` + +Open `http://localhost:8000` to view your presentation + +You can change the port by using `npm start -- --port=8001` + +Hint. In case you experience issue on mac os with `npm` try +```shell script +npm install -g npm-check-updates +npm-check-updates -u +npm install ``` \ No newline at end of file diff --git a/docs/img/Bender.png b/docs/img/Bender.png new file mode 100644 index 0000000..2d95a88 Binary files /dev/null and b/docs/img/Bender.png differ diff --git a/docs/index.html b/docs/index.html index 71cf94c..4450a24 100644 --- a/docs/index.html +++ b/docs/index.html @@ -63,27 +63,31 @@

Barys Ilyushonak aka Boris + Lead Software Engineer @ Foundation Services / München + [Java => Erlang => Scala] +

- +

```scala /** - * DeviceIdent + * graph-based analysis * 24x7 SaaS application * 0-downtime deployment - * real-time device scoring + * real-time processing */ val techStack = Map( - "lang" -> "scala", - "reactive" -> "akka", - "web" -> "Play!", - "messaging" -> "kafka", - "frontEnd" -> "nginx", - "storage" -> "MongoDB", - "os" -> "debian" + "lang" -> "scala", + "effect" -> "cats-effect", + "web" -> "http4s", + "messaging" -> "kafka", + "frontEnd" -> "nginx", + "storage" -> "MongoDB", + "os" -> "debian", + "orchestration" -> "k8s" ) ```

@@ -157,20 +161,6 @@

How-to test unknown?

data-separator-vertical="^\n\n" data-separator-notes="^Note:"> -
-

Where is the code?

-
-
- -
-
-

**Property-based testing** helps you to **find edge cases** and **understand code behaviour** @@ -206,6 +196,28 @@

References

* http://www.scalatest.org/user_guide/property_based_testing

+
+

Where is the code?

+

+ [Take a look at full presentation](https://biscout24.github.io/ltk-props-testing/) + + Code examples at [git@github.com:biscout24/ltk-props-testing.git](https://github.com/biscout24/ltk-props-testing/) +

+ +
+
+ +
+
+
diff --git a/docs/slides/intro.md b/docs/slides/intro.md index af14d9f..74e5d82 100644 --- a/docs/slides/intro.md +++ b/docs/slides/intro.md @@ -18,11 +18,11 @@ aka commutative property ![](./img/property_commutative.png "commutative property") ```scala -Prop.forAll { (a: Int, b: Int) => - a + b == b + a +Prop.forAll { (x: Int, y: Int) => + x + y == y + x } ``` -Note: +Note: lets assume example based testing for sum function, and you deal with lazy or very funny developer. He could make all tests green just by adding match-case here :) ### "There and back again" @@ -35,7 +35,7 @@ Prop.forAll { xs: List[Int] => xs.reverse.reverse == xs } ``` -Note: What is a typical example of it? Serialization/Desirialization +Note: What is a typical example of it? Serialization/Deserialization or write/read to/from DB ### "Some things never change"