<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=TestSuiteExamples</id>
	<title>TestSuiteExamples - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=TestSuiteExamples"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=TestSuiteExamples&amp;action=history"/>
	<updated>2026-05-15T17:15:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=TestSuiteExamples&amp;diff=39616&amp;oldid=prev</id>
		<title>imported&gt;Unknown at 05:28, 7 February 2021</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=TestSuiteExamples&amp;diff=39616&amp;oldid=prev"/>
		<updated>2021-02-07T05:28:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;여러 UnitTestFramework에서 TestSuite를 사용하는 예제들&lt;br /&gt;
&lt;br /&gt;
=== PyUnit ===&lt;br /&gt;
 import unittest&lt;br /&gt;
 from TestA import *&lt;br /&gt;
 from TestB import *&lt;br /&gt;
 &lt;br /&gt;
 class AllTests(unittest.TestSuite):&lt;br /&gt;
 	def suite(self):&lt;br /&gt;
 		suit = TestSuite()&lt;br /&gt;
 		suite.addTest(TestA())&lt;br /&gt;
 		suite.addTest(TestB())&lt;br /&gt;
                 return suit # 빼도 되더라..&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 # 사실 AllTests 자체를 완전히 빼버려도 됩니다. 그 이유는 from import *을 하기 때문입니다.&lt;br /&gt;
 &lt;br /&gt;
 if __name__==&amp;#039;__main__&amp;#039;:&lt;br /&gt;
 	unittest.main(argv=(&amp;#039;&amp;#039;,&amp;#039;-v&amp;#039;))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
혹은&lt;br /&gt;
&lt;br /&gt;
 import unittest &lt;br /&gt;
  &lt;br /&gt;
 def suite(): &lt;br /&gt;
     return unittest.defaultTestLoader.loadTestsFromNames( (&amp;#039;ThePackage.test_file1&amp;#039;,&amp;#039;ThePackage.subpack.test_file2&amp;#039;)) &lt;br /&gt;
  &lt;br /&gt;
 if __name__==&amp;#039;__main__&amp;#039;: &lt;br /&gt;
     unittest.TextTestRunner(verbosity=2).run(suite()) &lt;br /&gt;
  &lt;br /&gt;
=== [[JUnit]] ===&lt;br /&gt;
 import junit.framework.Test;&lt;br /&gt;
 import junit.framework.TestSuite;&lt;br /&gt;
 &lt;br /&gt;
 public class AllTests {&lt;br /&gt;
 	public static Test suite() {&lt;br /&gt;
 		TestSuite suite = new TestSuite(&amp;quot;Test for test&amp;quot;);&lt;br /&gt;
 		suite.addTestSuite(LoginTest.class);&lt;br /&gt;
 		suite.addTestSuite(QueryObjectTest.class);&lt;br /&gt;
 		return suite;&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
=== CppUnit ===&lt;br /&gt;
&lt;br /&gt;
=== [[NUnit]] ===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
[[프로그래밍분류]], TestDrivenDevelopment, UnitTest&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>