Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Unit-testing in Dart is still very much under development. We (the Dart authors) currently use a python script (tools/test.py) to execute all our tests. The script runs through predefined directories, looks for files ending with 'Test', executes them, and compares them to the expected outcome.</p> <p>Several days ago, a first version of test.dart (the equivalent in Dart) has been submitted. In the near future we will switch from tools/test.py to tools/test.dart to execute all our tests.</p> <p>If you are writing a big project you could reuse our testing-framework. We are using it on a daily basis and it is pretty stable. For smaller projects the time spent on learning the framework might not be worth the effort. I would furthermore not be surprised if there are (or will be) other testing-frameworks.</p> <p>The ListTest from your question has been written very early, when top-level functions were not yet available. It has since been modified (adding the main function) but we wouldn't write the test in this way anymore. Unless needed, we don't create classes in our test-cases. See, for example, <a href="http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/frog/tests/leg/src/LinkTest.dart?spec=svn2280&amp;r=1560">here</a> for a more recent test.</p> <p>Edit: There is also a unit-test framework in client/testing/unittest/. See <a href="http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/client/tests/client/json/json_tests.dart?spec=svn2304&amp;r=1437">here</a> for a test using this framework. This one also has the advantage that it runs in the browser.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload