Automated testing?

Hi,

I’ve been working on learn prolog now, and have been working with DCG’s and parsing sentences.
I have lots of rules and lots of words in my lexicon. I also have lots of sentences, that I want to run, and check whether my grammar accepts it. Is there a way where I could run all of the queries at once/ automated testing I could use to just get the output?

Thanks

See: Prolog Unit Tests