Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
doc:testing [2015/04/28 15:30]
gkazhoya
doc:testing [2019/11/18 13:51]
gkazhoya [Testing]
Line 28: Line 28:
 **Writing unit tests for your functions** **Writing unit tests for your functions**
  
-TODO: here should go link with some testing ​tutorial+Here is a tutorial ​on [[tutorials:​beginner:​testing|writing tests]].
  
 **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.