Commit e2d9c276 authored by rjsmelo's avatar rjsmelo

[REF] Exclude from the default phpunit run all tests marked as skipped or...

[REF] Exclude from the default phpunit run all tests marked as skipped or incomplete, when running unit tests we should have a clean output
parent 4e042a66
......@@ -6,6 +6,9 @@
// $Id$
class Calendar_DateTest extends TikiTestCase
{
/**
* @group marked-as-incomplete
*/
function testMake_time()
{
$this->markTestIncomplete('skiping because it is failing');
......
......@@ -179,6 +179,9 @@ class Multilingual_Aligner_UpdatePagesTest extends TikiTestCase
);
}
/**
* @group marked-as-skipped
*/
public function test_sentence_inserted_in_both_source_and_target_sides()
{
$this->markTestSkipped("This test is failing at the moment. Need to fix it");
......@@ -208,6 +211,9 @@ class Multilingual_Aligner_UpdatePagesTest extends TikiTestCase
);
}
/**
* @group marked-as-skipped
*/
public function test_sentence_deleted_on_both_source_and_target_sides()
{
$this->markTestSkipped("This test is failing at the moment. Need to fix it");
......
......@@ -53,6 +53,9 @@ class Reports_CacheTest extends TikiDatabaseTestCase
$this->assertEquals($expectedResult, $entries);
}
/**
* @group marked-as-skipped
*/
public function testAdd_shouldAddInformationAboutChangedObjectToCache()
{
$this->markTestSkipped("As of 2013-09-30, this test is broken. Skipping it for now.");
......
......@@ -28,6 +28,9 @@ class TikiSecurityTest extends PHPUnit_Framework_TestCase
$this->assertNull($security->decode($string));
}
/**
* @group marked-as-skipped
*/
function testAlterData()
{
$this->markTestSkipped("As of 2013-09-30, this test is broken. Skipping it for now.");
......
......@@ -21,6 +21,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals($data, $parser->parse($data));
}
/**
* @group marked-as-incomplete
*/
function testCallToArgumentParser()
{
$this->markTestIncomplete('Implementation not written yet');
......@@ -45,6 +48,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals($data, $parser->parse($data));
}
/**
* @group marked-as-incomplete
*/
function testFullSyntax()
{
$this->markTestIncomplete('Implementation not written yet');
......@@ -65,6 +71,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals('This is a test and will change', $parser->parse($data));
}
/**
* @group marked-as-incomplete
*/
function testShortSyntax()
{
$this->markTestIncomplete('Implementation not written yet');
......@@ -85,6 +94,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals('This is a test and will change', $parser->parse($data));
}
/**
* @group marked-as-incomplete
*/
function testShortSyntaxWithoutArguments()
{
$this->markTestIncomplete('Implementation not written yet');
......@@ -105,6 +117,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals('This is a test and will change', $parser->parse($data));
}
/**
* @group marked-as-incomplete
*/
function testSkipNoParse()
{
$this->markTestIncomplete('Implementation not written yet');
......@@ -121,6 +136,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals('~np~ {a} ~/np~ return ~np~ {c} ~/np~', $parser->parse($data));
}
/**
* @group marked-as-incomplete
*/
function testNestingNoSecondCall()
{
$this->markTestIncomplete('Implementation not written yet');
......@@ -137,6 +155,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals('no plugin', $parser->parse($data));
}
/**
* @group marked-as-incomplete
*/
function testPluginReturningPlugin()
{
$this->markTestIncomplete('Implementation not written yet');
......@@ -151,6 +172,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals('before __hello__ after', $parser->parse('before {a} after'));
}
/**
* @group marked-as-incomplete
*/
function testInnerPluginNotExecutedFirst()
{
$this->markTestIncomplete('Implementation not written yet');
......@@ -165,6 +189,9 @@ class WikiParser_PluginParserTest extends TikiTestCase
$this->assertEquals('__hello__', $parser->parse('{A()} {b} {A}'));
}
/**
* @group marked-as-incomplete
*/
function testPluginReturnsNonParseCode()
{
$this->markTestIncomplete('Implementation not written yet');
......
......@@ -305,7 +305,9 @@ class EditLibTest extends TikiTestCase
$this->assertEquals($ex, $res);
}
/**
* @group marked-as-incomplete
*/
function testSpanNestedTitle()
{
$this->markTestIncomplete('Work in progress.');
......
......@@ -34,6 +34,8 @@ class EditLib_ParseToWiki_CharacterTest extends TikiTestCase
* => {FONT(family="tahoma", size="12pt")}text{FONT}
* - 'font-family'
* - 'font-size'
*
* @group marked-as-incomplete
*/
function testFontFamily()
{
......@@ -298,6 +300,8 @@ class EditLib_ParseToWiki_CharacterTest extends TikiTestCase
*
* => -+
* - <code>
*
* @group marked-as-incomplete
*/
function testMonospace()
{
......
......@@ -215,6 +215,8 @@ class EditLib_ParseToWiki_TextTest extends TikiTestCase
/**
* Align paragraphs 'left'
*
* @group marked-as-incomplete
*/
function testParagraphAlignLeft()
{
......@@ -432,6 +434,8 @@ class EditLib_ParseToWiki_TextTest extends TikiTestCase
/**
* Align paragraphs 'right'
*
* @group marked-as-incomplete
*/
function testParagraphAlignRight()
{
......@@ -460,6 +464,8 @@ class EditLib_ParseToWiki_TextTest extends TikiTestCase
/**
* Align paragraphs 'justified'
*
* @group marked-as-incomplete
*/
function testParagraphAlignJustified()
{
......
......@@ -28,6 +28,9 @@ class EditLib_ParseToWysiwyg_CharacterTest extends TikiTestCase
}
/**
* @group marked-as-incomplete
*/
function testFontFamily()
{
$this->markTestIncomplete('Work in progress.');
......@@ -41,6 +44,9 @@ class EditLib_ParseToWysiwyg_CharacterTest extends TikiTestCase
}
/**
* @group marked-as-incomplete
*/
function testFontSize()
{
$this->markTestIncomplete('Work in progress.');
......@@ -90,6 +96,9 @@ class EditLib_ParseToWysiwyg_CharacterTest extends TikiTestCase
}
/**
* @group marked-as-incomplete
*/
function testSubscript()
{
$this->markTestIncomplete('Work in progress.');
......@@ -100,6 +109,9 @@ class EditLib_ParseToWysiwyg_CharacterTest extends TikiTestCase
}
/**
* @group marked-as-incomplete
*/
function testSuperscript()
{
$this->markTestIncomplete('Work in progress.');
......@@ -112,7 +124,9 @@ class EditLib_ParseToWysiwyg_CharacterTest extends TikiTestCase
$this->assertContains($exp, $out);
}
/**
* @group marked-as-incomplete
*/
function testMonospaced()
{
$this->markTestIncomplete('Work in progress.');
......@@ -125,7 +139,9 @@ class EditLib_ParseToWysiwyg_CharacterTest extends TikiTestCase
$this->assertContains($exp, $out);
}
/**
* @group marked-as-incomplete
*/
function testTeletype()
{
$this->markTestIncomplete('Work in progress.');
......
......@@ -216,6 +216,8 @@ class EditLib_ParseToWysiwyg_LinkTest extends TikiTestCase
/**
* Test links to web pages
*
* @group marked-as-skipped
*/
function testWebResource()
{
......@@ -317,6 +319,8 @@ class EditLib_ParseToWysiwyg_LinkTest extends TikiTestCase
/**
* Test links to internal wiki pages
*
* @group marked-as-skipped
*/
function testWikiPage()
{
......@@ -438,8 +442,10 @@ class EditLib_ParseToWysiwyg_LinkTest extends TikiTestCase
}
/*
/**
* Test anchors generated by {ANAME}
*
* @group marked-as-incomplete
*/
function testPluginAname()
{
......
......@@ -33,6 +33,8 @@ class EditLib_ParseToWysiwyg_ListTest extends TikiTestCase
* Test bullet lists
*
* Test single lines with different numbers of '*'
*
* @group marked-as-skipped
*/
function testBulletList()
{
......@@ -71,6 +73,8 @@ class EditLib_ParseToWysiwyg_ListTest extends TikiTestCase
* Test the continuation of bullet lists
*
* Test level one and two
*
* @group marked-as-skipped
*/
function testBulletListContinuation()
{
......@@ -112,6 +116,8 @@ class EditLib_ParseToWysiwyg_ListTest extends TikiTestCase
* Test numbered lists
*
* Test single lines with different numbers of '#'
*
* @group marked-as-skipped
*/
function testNumberedList()
{
......@@ -150,6 +156,8 @@ class EditLib_ParseToWysiwyg_ListTest extends TikiTestCase
* Test the continuation of numbered lists
*
* Test level one and two
*
* @group marked-as-skipped
*/
function testNumberedListContinuation()
{
......
......@@ -31,6 +31,8 @@ class EditLib_ParseToWysiwyg_TextTest extends TikiTestCase
/**
* Align divs 'left'
*
* @group marked-as-incomplete
*/
function testBlockAlignLeft()
{
......@@ -61,6 +63,8 @@ class EditLib_ParseToWysiwyg_TextTest extends TikiTestCase
/**
* Align divs 'center'
*
* @group marked-as-incomplete
*/
function testBlockAlignCentered()
{
......@@ -92,6 +96,8 @@ class EditLib_ParseToWysiwyg_TextTest extends TikiTestCase
/**
* Align divs 'right'
*
* @group marked-as-incomplete
*/
function testBlockAlignRight()
{
......@@ -108,6 +114,8 @@ class EditLib_ParseToWysiwyg_TextTest extends TikiTestCase
/**
* Align divs 'justify'
*
* @group marked-as-incomplete
*/
function testBlockAlignJustified()
{
......@@ -124,6 +132,8 @@ class EditLib_ParseToWysiwyg_TextTest extends TikiTestCase
/**
* Align paragraphs 'left'
*
* @group marked-as-incomplete
*/
function testParagraphAlignLeft()
{
......@@ -226,6 +236,8 @@ class EditLib_ParseToWysiwyg_TextTest extends TikiTestCase
/**
* Align paragraphs 'center'
*
* @group marked-as-incomplete
*/
function testParagraphAlignCentered()
{
......@@ -240,6 +252,8 @@ class EditLib_ParseToWysiwyg_TextTest extends TikiTestCase
/**
* Align paragraphs 'right'
*
* @group marked-as-incomplete
*/
function testParagraphAlignRight()
{
......@@ -254,6 +268,8 @@ class EditLib_ParseToWysiwyg_TextTest extends TikiTestCase
/**
* Align paragraphs 'justify'
*
* @group marked-as-incomplete
*/
function testParagraphAlignJustified()
{
......
......@@ -171,6 +171,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
ob_get_clean();
}
/**
* @group marked-as-skipped
*/
public function testInsertItem_shouldCallInsertCommentsForPage()
{
$this->markTestSkipped("As of 2013-09-30, this test is broken. Skipping it for now.");
......@@ -185,6 +188,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$obj->insertItem($page);
}
/**
* @group marked-as-skipped
*/
public function testInsertItem_shouldCallInsertCommentsForPost()
{
$this->markTestSkipped("As of 2013-09-30, this test is broken. Skipping it for now.");
......@@ -235,6 +241,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
ob_get_clean();
}
/**
* @group marked-as-skipped
*/
public function testInsertComments()
{
$this->markTestSkipped("As of 2013-09-30, this test is broken. Skipping it for now.");
......@@ -256,6 +265,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$this->obj->insertComments(2, 'wiki page', $comments);
}
/**
* @group marked-as-skipped
*/
public function testInsertCommentsShouldConsiderIfCommentIsApprovedOrNot()
{
$this->markTestSkipped("As of 2013-09-30, this test is broken. Skipping it for now.");
......@@ -278,6 +290,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$this->obj->insertComments(2, 'wiki page', $comments);
}
/**
* @group marked-as-skipped
*/
public function testInsertPage()
{
$this->markTestSkipped('2016-09-26 Skipped as dependency injection has stopped mock objects working like this.');
......@@ -304,6 +319,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$obj->insertPage([]);
}
/**
* @group marked-as-skipped
*/
public function testInsertPost()
{
$this->markTestSkipped('2016-09-26 Skipped as dependency injection has stopped mock objects working like this.');
......@@ -326,6 +344,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$this->obj->insertPost($post);
}
/**
* @group marked-as-skipped
*/
public function testCreateTags()
{
$this->markTestSkipped('2016-09-26 Skipped as dependency injection has stopped mock objects working like this.');
......@@ -341,6 +362,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$this->obj->createTags($tags);
}
/**
* @group marked-as-skipped
*/
public function testCreateCategories()
{
$this->markTestSkipped('2016-09-26 Skipped as dependency injection has stopped mock objects working like this.');
......@@ -361,6 +385,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$this->obj->createCategories($categories);
}
/**
* @group marked-as-skipped
*/
public function testLinkObjectWithTags()
{
$this->markTestSkipped('2016-09-26 Skipped as dependency injection has stopped mock objects working like this.');
......@@ -376,6 +403,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$this->obj->linkObjectWithTags('HomePage', 'wiki page', $tags);
}
/**
* @group marked-as-skipped
*/
public function testLinkObjectWithCategories()
{
$this->markTestSkipped('2016-09-26 Skipped as dependency injection has stopped mock objects working like this.');
......@@ -394,6 +424,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$this->obj->linkObjectWithCategories('HomePage', 'wiki page', $categs);
}
/**
* @group marked-as-skipped
*/
public function testCreateBlog()
{
$this->markTestSkipped('2016-09-26 Skipped as dependency injection has stopped mock objects working like this.');
......@@ -409,6 +442,9 @@ class TikiImporter_Blog_Test extends TikiImporter_TestCase
$this->obj->createBlog();
}
/**
* @group marked-as-skipped
*/
public function testCreateBlogShouldSetBlogAsHomepage()
{
$this->markTestSkipped('2016-09-26 Skipped as dependency injection has stopped mock objects working like this.');
......
......@@ -43,6 +43,9 @@ class TikiImporter_Wiki_Mediawiki_Test extends TikiImporter_TestCase
$this->assertEquals("Loading and validating the XML file\n\nImportation completed!\n\n<b><a href=\"tiki-importer.php\">Click here</a> to finish the import process</b>", $output);
}
/**
* @group marked-as-skipped
*/
public function testImportWithoutInternalMocking()
{
$this->markTestSkipped('2016-09-26 Skipped as the underlying PEAR is out of date.');
......@@ -95,6 +98,9 @@ class TikiImporter_Wiki_Mediawiki_Test extends TikiImporter_TestCase
$this->obj->import(dirname(__FILE__) . '/fixtures/mediawiki_sample.xml');
}
/**
* @group marked-as-skipped
*/
public function testConfigureParser()
{
$this->markTestSkipped('2016-09-26 Skipped as the underlying PEAR is out of date.');
......@@ -484,6 +490,9 @@ class TikiImporter_Wiki_Mediawiki_Test extends TikiImporter_TestCase
}
// TODO: find a way to mock the Text_Wiki object inside convertMakup()
/**
* @group marked-as-skipped
*/
public function testConvertMarkup()
{
$this->markTestSkipped('2016-09-26 Skipped as the underlying PEAR is out of date.');
......@@ -495,6 +504,9 @@ class TikiImporter_Wiki_Mediawiki_Test extends TikiImporter_TestCase
$this->assertEquals($expectedResult, $this->obj->convertMarkup($mediawikiText));
}
/**
* @group marked-as-skipped
*/
public function testConvertMarkupShouldReturnNullIfEmptyMediawikiText()
{
$this->markTestSkipped('2016-09-26 Skipped as the underlying PEAR is out of date.');
......
......@@ -359,6 +359,9 @@ T-456|Foobar|1|120.50
);
}
/**
* @group marked-as-skipped
*/
function testGetGiftCertificateCode_shouldReturnCodeIfNotNull()
{
$this->markTestSkipped("As of 2013-10-02, this test is broken, and nobody knows how to fix it. Mark as Skipped for now.");
......
......@@ -11,6 +11,7 @@ class WikiPlugin_CodeTest extends PHPUnit_Framework_TestCase
{
/**
* @dataProvider provider
* @group marked-as-skipped
*/
public function testWikiPluginCode($data, $expectedOutput, $params = [])
{
......
......@@ -47,6 +47,7 @@ class WikiPlugin_TranslationOfTest extends TikiTestCase
/**
* @dataProvider provider
* @group marked-as-skipped
*/
public function testWikiPlugin_TranslationOf($data, $expectedOutput, $params = [], $message = "")
{
......
......@@ -19,12 +19,19 @@
<testsuites>
<testsuite name="Tiki test suite">
<directory>./lib/test</directory>
<!-- Exclude files where all tests are marked as skipped -->
<exclude>./lib/test/AcceptanceTests/</exclude>
<exclude>./lib/test/core/Reports/ReportsEndToEndTest.php</exclude>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>disable</group>
<group>marked-as-skipped</group>
<group>marked-as-incomplete</group>
<!-- require pref lang_google_api_key -->
<group>GoogleTranslate</group>
</exclude>
</groups>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment