Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
doc:testing [2019/11/18 13:51]
gkazhoya [Testing]
doc:testing [2019/11/18 13:52]
gkazhoya [Testing]
Line 28: Line 28:
 **Writing unit tests for your functions** **Writing unit tests for your functions**
  
-Here is a tutorial on [[tutorials:​beginner:​testing|writing tests]].+Here is a tutorial on [[tutorials:​beginner:​testing|writing tests]]. It does assume that you have gone through 
 +all the beginner tutorials and have the corresponding code for the tutorials locally available. 
 +So, if you haven'​t done the beginner tutorials yet or very long ago, now is a good time to quickly refresh.
  
 **FiveAM** **FiveAM**
 If lisp-unit isn't expressive enough for you, consider using [[http://​common-lisp.net/​project/​fiveam/​|FiveAM]]. If lisp-unit isn't expressive enough for you, consider using [[http://​common-lisp.net/​project/​fiveam/​|FiveAM]].
 To run tests written with FiveAM (1) load the tests asdf package, (2) change to the corresponding Lisp package in the REPL and (3) execute ''​(run!)''​. If ''​(run!)''​ doesn'​t do anything automatically,​ try specifying the test suite name: ''​(run! '​MY_TEST_SUITE_NAME)''​. You can find the name by ''​rgrep''​-ing ''​(def-suite''​ in your ASDF package. To run tests written with FiveAM (1) load the tests asdf package, (2) change to the corresponding Lisp package in the REPL and (3) execute ''​(run!)''​. If ''​(run!)''​ doesn'​t do anything automatically,​ try specifying the test suite name: ''​(run! '​MY_TEST_SUITE_NAME)''​. You can find the name by ''​rgrep''​-ing ''​(def-suite''​ in your ASDF package.