[dylan-lang/testworks] 14ffc8: testworks: Support passing options to tests

GitHub <[email protected]> Tue, 08 Sep 2015 19:15:36 -0700
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <55ef9648225c2_7b443f9fe3ac92bc106645@hookshot-fe6-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/testworks
  Commit: 14ffc89c5b7c9f2ab2af006a23248e59369bb0a0
      https://github.com/dylan-lang/testworks/commit/14ffc89c5b7c9f2ab2af006a23248e59369bb0a0
  Author: Peter S. Housel <[email protected]>
  Date:   2015-09-09 (Wed, 09 Sep 2015)

  Changed paths:
    M command-line.dylan
    M documentation/users-guide/source/reference.rst
    M library.dylan
    M run.dylan
    M tests/specification.dylan

  Log Message:
  -----------
  testworks: Support passing options to tests

Sometimes test functions need to have information about external
entities, such as the directory path of test or reference data files, or
the hostname of a test database server. This commit allows this sort of
information to be supplied on the command line of the test application.

* run.dylan
  (runner-options): New constant slot in <test-runner>.
  (test-option): New function to return an option value if one is set.

* command-line.dylan
  (make-runner-from-command-line): Add arguments of the form name=value
   to the runner-options table for retrieval by test-option.

* library.dylan (module testworks): Export test-option.

* tests/specification.dylan
  (module-spec testworks): Add test-option.
  (function-test test-option): New function-test.

* documentation/users-guide/source/reference.rst: Document test-option.


  Commit: 78875fbda89e0bc7ed0f8b5820a0f13cc7fb7a38
      https://github.com/dylan-lang/testworks/commit/78875fbda89e0bc7ed0f8b5820a0f13cc7fb7a38
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-09-09 (Wed, 09 Sep 2015)

  Changed paths:
    M command-line.dylan
    M documentation/users-guide/source/reference.rst
    M library.dylan
    M run.dylan
    M tests/specification.dylan

  Log Message:
  -----------
  Merge pull request #70 from housel/test-options

testworks: Support passing options to tests


Compare: https://github.com/dylan-lang/testworks/compare/1b3f26d23d55...78875fbda89e

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter