T
Trans
As far as I know, Facets is the only large project that uses embedded
unit tests. The tests are housed in block comments, eg.
=begin test
...
=end
I have a command line tool that can run the embedded test directly.
For deployment, I have another tool that extracts all the embedded
tests and copies them to stand-alone test/ files so others can run
them. It works fairly well. And the advantage of course is that the
unit tests are right there with the libs they test.
However, considering that just about everyone else is putting units
test in their on test files, I'm wondering if I actually missing out
on superior advantages to that approach. If not why haven't others
pursued better tools for supporting embedded tests?
Thanks,
T.
unit tests. The tests are housed in block comments, eg.
=begin test
...
=end
I have a command line tool that can run the embedded test directly.
For deployment, I have another tool that extracts all the embedded
tests and copies them to stand-alone test/ files so others can run
them. It works fairly well. And the advantage of course is that the
unit tests are right there with the libs they test.
However, considering that just about everyone else is putting units
test in their on test files, I'm wondering if I actually missing out
on superior advantages to that approach. If not why haven't others
pursued better tools for supporting embedded tests?
Thanks,
T.