Search in sources :

Example 6 with TestSuite

use of com.google.idea.blaze.base.run.smrunner.BlazeXmlSchema.TestSuite in project intellij by bazelbuild.

the class BlazeXmlSchemaTest method testOuterTestSuitesElement.

@Test
public void testOuterTestSuitesElement() {
    TestSuite parsed = parseXml("<?xml version='1.0' encoding='UTF-8'?>", "<testsuites>", "  <testsuite name='foo' hostname='localhost' tests='331' failures='0' id='0'>", "    <properties />", "    <system-out />", "    <system-err />", "  </testsuite>", "  <testsuite name='bar'>", "    <testcase name='bar_test_1' time='12.2' />", "    <system-out />", "  </testsuite>", "</testsuites>");
    assertThat(parsed).isNotNull();
}
Also used : TestSuite(com.google.idea.blaze.base.run.smrunner.BlazeXmlSchema.TestSuite) Test(org.junit.Test)

Aggregations

TestSuite (com.google.idea.blaze.base.run.smrunner.BlazeXmlSchema.TestSuite)6 Test (org.junit.Test)4 TestCase (com.google.idea.blaze.base.run.smrunner.BlazeXmlSchema.TestCase)3 InputStream (java.io.InputStream)2 Joiner (com.google.common.base.Joiner)1 ImmutableList (com.google.common.collect.ImmutableList)1 Truth.assertThat (com.google.common.truth.Truth.assertThat)1 Kind (com.google.idea.blaze.base.model.primitives.Kind)1 TestStatus (com.google.idea.blaze.base.run.testlogs.BlazeTestResult.TestStatus)1 TestSuiteFinishedEvent (com.intellij.execution.testframework.sm.runner.events.TestSuiteFinishedEvent)1 TestSuiteStartedEvent (com.intellij.execution.testframework.sm.runner.events.TestSuiteStartedEvent)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 StandardCharsets (java.nio.charset.StandardCharsets)1 ArrayList (java.util.ArrayList)1 Objects (java.util.Objects)1 Collectors (java.util.stream.Collectors)1 TestSuiteStarted (jetbrains.buildServer.messages.serviceMessages.TestSuiteStarted)1 RunWith (org.junit.runner.RunWith)1