com.github.nfalco79.junit4osgi.runner.internal.SurefireConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit4osgi-runner Show documentation
Show all versions of junit4osgi-runner Show documentation
This bundle deals to run all tests in a test registry and produce for each one an XML surefire report.
The newest version!
/*
* Copyright 2017 Nikolas Falco
* Licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.github.nfalco79.junit4osgi.runner.internal;
/**
* Define constants needed to create an XML surefire report.
*
* @author Nikolas Falco
*/
public final class SurefireConstants {
private SurefireConstants() {
}
public static final String DEFAULT_CHARSET = "UTF-8";
public static final String DEFAULT_NAME = "TEST-{0}.xml";
/*
* XML constants
*/
public static final String XML_HEADER = "";
public static final String CDATA_START = "";
/*
* Suite element and its children and attributes
*/
public static final String SUITE_ELEMENT = "testsuite";
public static final String SUITE_XSI_ATTRIBUTE = "xmlns:xsi";
public static final String SUITE_XSD_ATTRIBUTE = "xsi:noNamespaceSchemaLocation";
public static final String SUITE_NAME_ATTRIBUTE = "name";
public static final String SUITE_TIME_ATTRIBUTE = "time";
public static final String SUITE_TESTS_ATTRIBUTE = "tests";
public static final String SUITE_FAILURES_ATTRIBUTE = "failures";
public static final String SUITE_ERRORS_ATTRIBUTE = "errors";
public static final String SUITE_SKIPPED_ATTRIBUTE = "skipped";
public static final String SUITE_GROUP_ATTRIBUTE = "group";
/*
* Test element and its children and attributes
*/
public static final String TEST_ELEMENT = "testcase";
public static final String TEST_FLAKY_FAILURE_ELEMENT = "flakyFailure";
public static final String TEST_FLAKY_ERROR_ELEMENT = "flakyError";
public static final String TEST_STDERR_ELEMENT = "system-err";
public static final String TEST_STDOUT_ELEMENT = "system-out";
public static final String TEST_ERROR_ELEMENT = "error";
public static final String TEST_ERROR_RERUN_ELEMENT = "rerunError";
public static final String TEST_ERROR_MESSAGE_ATTRIBUTE = "message";
public static final String TEST_ERROR_TYPE_ATTRIBUTE = "type";
public static final String TEST_FAILURE_ELEMENT = "failure";
public static final String TEST_FAILURE_RERUN_ELEMENT = "rerunFailure";
public static final String TEST_FAILURE_MESSAGE_ATTRIBUTE = "message";
public static final String TEST_FAILURE_TYPE_ATTRIBUTE = "type";
public static final String TEST_FAILURE_TIME_ATTRIBUTE = "time";
public static final String TEST_SKIPPED_ELEMENT = "skipped";
public static final String TEST_SKIPPED_MESSAGE_ATTRIBUTE = "message";
public static final String TEST_NAME_ATTRIBUTE = "name";
public static final String TEST_CLASSNAME_ATTRIBUTE = "classname";
public static final String TEST_TIME_ATTRIBUTE = "time";
public static final String TEST_GROUP_ATTRIBUTE = "group";
/*
* Properties element and its children and attributes
*/
public static final String PROPERTIES_ELEMENT = "properties";
public static final String PROPERTY_ELEMENT = "property";
public static final String PROPERTY_NAME_ATTRIBUTE = "name";
public static final String PROPERTY_VALUE_ATTRIBUTE = "value";
}