/* * Copyright 2020 EPAM Systems * * 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. */ import React from "react"; import { Icons, Tooltip, Checkbox, Field, } from "@drill4j/ui-kit"; import { parseCoverage, inputLengthRestriction } from "@drill4j/common-utils"; import tw, { styled } from "twin.macro"; import { ConditionSettingByType } from "types/quality-gate-type"; import { ThresholdValueField } from "./threshold-value-field"; interface Props { conditionSettingByType: ConditionSettingByType; } const GridWrapper = styled.div` ${tw`grid gap-x-4 h-14`} grid-template-columns: 16px 1fr 80px; & > div:first-child { ${tw`block`} } `; export const QualityGateSettings = ({ conditionSettingByType }: Props) => (
Build coverage, %
Minimum % of build methods covered by tests
inputLengthRestriction(value, 7)} >
Risks Try to cover all of your risks in current build. Uncovered risks won’t be counted in your next build.
)} >
Maximum number of not covered risk methods
inputLengthRestriction(value, 7)} >
Tests to run
Maximum number of not executed tests to run
);