|
From: <caw...@us...> - 2006-12-15 15:40:28
|
Revision: 1712
http://svn.sourceforge.net/rubyeclipse/?rev=1712&view=rev
Author: cawilliams
Date: 2006-12-15 07:40:23 -0800 (Fri, 15 Dec 2006)
Log Message:
-----------
Added Paths:
-----------
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/runner/MessageIds.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/runner/TestUnitRunner.java
Added: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/runner/MessageIds.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/runner/MessageIds.java (rev 0)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/runner/MessageIds.java 2006-12-15 15:40:23 UTC (rev 1712)
@@ -0,0 +1,124 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.rubypeople.rdt.internal.testunit.runner;
+
+/**
+ * Message identifiers for messages sent by the
+ * RemoteTestRunner.
+ *
+ * @see RemoteTestRunner
+ */
+public class MessageIds {
+ /**
+ * The header length of a message, all messages
+ * have a fixed header length
+ */
+ public static final int MSG_HEADER_LENGTH= 8;
+
+ /**
+ * Notification that a test trace has started.
+ * The end of the trace is signaled by a TRACE_END
+ * message. In between the TRACE_START and TRACE_END
+ * the stack trace is submitted as multiple lines.
+ */
+ public static final String TRACE_START= "%TRACES "; //$NON-NLS-1$
+ /**
+ * Notification that a trace ends.
+ */
+ public static final String TRACE_END= "%TRACEE "; //$NON-NLS-1$
+ /**
+ * Notification that the expected result has started.
+ * The end of the expected result is signaled by a Trace_END.
+ */
+ public static final String EXPECTED_START= "%EXPECTS"; //$NON-NLS-1$
+ /**
+ * Notification that an expected result ends.
+ */
+ public static final String EXPECTED_END= "%EXPECTE"; //$NON-NLS-1$
+ /**
+ * Notification that the expected result has started.
+ * The end of the expected result is signaled by a Trace_END.
+ */
+ public static final String ACTUAL_START= "%ACTUALS"; //$NON-NLS-1$
+ /**
+ * Notification that an expected result ends.
+ */
+ public static final String ACTUAL_END= "%ACTUALE"; //$NON-NLS-1$
+ /**
+ * Notification that a trace for a reran test has started.
+ * The end of the trace is signaled by a RTrace_END
+ * message.
+ */
+ public static final String RTRACE_START= "%RTRACES"; //$NON-NLS-1$
+ /**
+ * Notification that a trace of a reran trace ends.
+ */
+ public static final String RTRACE_END= "%RTRACEE"; //$NON-NLS-1$
+ /**
+ * Notification that a test run has started.
+ * MessageIds.TEST_RUN_START+testCount.toString+" "+version
+ */
+ public static final String TEST_RUN_START= "%TESTC "; //$NON-NLS-1$
+ /**
+ * Notification that a test has started.
+ * MessageIds.TEST_START + testID + "," + testName
+ */
+ public static final String TEST_START= "%TESTS "; //$NON-NLS-1$
+ /**
+ * Notification that a test has started.
+ * TEST_END + testID + "," + testName
+ */
+ public static final String TEST_END= "%TESTE "; //$NON-NLS-1$
+ /**
+ * Notification that a test had a error.
+ * TEST_ERROR + testID + "," + testName.
+ * After the notification follows the stack trace.
+ */
+ public static final String TEST_ERROR= "%ERROR "; //$NON-NLS-1$
+ /**
+ * Notification that a test had a failure.
+ * TEST_FAILED + testID + "," + testName.
+ * After the notification follows the stack trace.
+ */
+ public static final String TEST_FAILED= "%FAILED "; //$NON-NLS-1$
+ /**
+ * Notification that a test run has ended.
+ * TEST_RUN_END+elapsedTime.toString().
+ */
+ public static final String TEST_RUN_END="%RUNTIME"; //$NON-NLS-1$
+ /**
+ * Notification that a test run was successfully stopped.
+ */
+ public static final String TEST_STOPPED="%TSTSTP "; //$NON-NLS-1$
+ /**
+ * Notification that a test was reran.
+ * TEST_RERAN+testId+" "+testClass+" "+testName+STATUS.
+ * Status = "OK" or "FAILURE".
+ */
+ public static final String TEST_RERAN= "%TSTRERN"; //$NON-NLS-1$
+ /**
+ * Notification about a test inside the test suite.
+ * TEST_TREE+ testId"," + testName","isSuite","testcount
+ * isSuite = "true" or "false"
+ */
+ public static final String TEST_TREE="%TSTTREE"; //$NON-NLS-1$
+ /**
+ * Request to stop the current test run.
+ */
+ public static final String TEST_STOP= ">STOP "; //$NON-NLS-1$
+ /**
+ * Request to rerun a test.
+ * TEST_RERUN+testId+" "+ClassName+" "+testName
+ */
+ public static final String TEST_RERUN= ">RERUN "; //$NON-NLS-1$
+}
+
+
Added: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/runner/TestUnitRunner.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/runner/TestUnitRunner.java (rev 0)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/runner/TestUnitRunner.java 2006-12-15 15:40:23 UTC (rev 1712)
@@ -0,0 +1,39 @@
+/*
+ * Author: C.Williams
+ *
+ * Copyright (c) 2004 RubyPeople.
+ *
+ * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. You
+ * can get copy of the GPL along with further information about RubyPeople and
+ * third party software bundled with RDT in the file
+ * org.rubypeople.rdt.core_x.x.x/RDT.license or otherwise at
+ * http://www.rubypeople.org/RDT.license.
+ *
+ * RDT is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.
+ *
+ * RDT is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * RDT; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+ * Suite 330, Boston, MA 02111-1307 USA
+ */
+package org.rubypeople.rdt.internal.testunit.runner;
+
+import org.rubypeople.rdt.internal.launching.InterpreterRunner;
+
+/**
+ * @author Chris
+ *
+ */
+public class TestUnitRunner extends InterpreterRunner {
+
+ public TestUnitRunner() {
+ super();
+ }
+
+}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|