Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: client/testing/dartest/README.txt

Issue 8905021: Dartest CL - Please review (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/samples/total/src/TotalLib.dart ('k') | client/testing/dartest/css.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/testing/dartest/README.txt
===================================================================
--- client/testing/dartest/README.txt (revision 0)
+++ client/testing/dartest/README.txt (revision 0)
@@ -0,0 +1,22 @@
+DARTest is a test infrastructure for Dart applications.
+
+To use the in-app test runner, follow these steps:
+1. Import dartest as a library.
+#import('dart/testing/unittest/unittest_dartest.dart');
+#import('dart/testing/dartest/dartest.dart');
+
+
+2. Write tests for the application in a function, call the test functions and
+then run dart:
+
+test('Test Description',(){
+ Expect.equals(3, myAddFunc(1,2));
+});
+new DARTest().run();
+
+
+3. Thats all! Now when you compile and run your application, you should
+see the DARTest in-app overlay window.
+
+For an example, see tests in $DART/client/tests/client/samples/total/total_dartest.dart
+
« no previous file with comments | « client/samples/total/src/TotalLib.dart ('k') | client/testing/dartest/css.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698