FagnerMartinsBrack / talk-mocking-and-false-positives

The content of a 15 minutes lightning talk presented at SydJS

Home Page:https://medium.com/@fagnerbrack/mocking-can-lean-to-nondeterministic-tests-4ba8aef977a0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mocking And False Positives

Local Presentation

To run the presentation just open /presentation/index.html locally
To open the notes, just open /presentation/notes.txt in a separate screen

Online Presentation

Access https://FagnerMartinsBrack.github.io/talk-mocking-and-false-positives

Blog Post

Access https://medium.com/@fagnerbrack/mocking-can-lean-to-nondeterministic-tests-4ba8aef977a0

Running the examples

To run the presentation examples, enter the directory /app/ using the latest version of node and execute the following command:

$ npm install

To run a specific test, navigate to the /test/token directory and write a describe.only( to the first describe.

After that, run npm test.

To tweek the code, go to /src/token directory and change the contents of the store-token* files to force the test to either fail or succees as desired.

About

The content of a 15 minutes lightning talk presented at SydJS

https://medium.com/@fagnerbrack/mocking-can-lean-to-nondeterministic-tests-4ba8aef977a0

License:MIT License


Languages

Language:HTML 64.3%Language:JavaScript 20.7%Language:CSS 15.0%