Skip to content

Commit

Permalink
Add runner for Required tests
Browse files Browse the repository at this point in the history
  • Loading branch information
poojantcs committed Jul 24, 2023
1 parent 6fc4093 commit 8189cb6
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/e2e-test/features/aribasource/AribaRunTime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Regression
Feature: Ariba Source - Run time scenarios

@BATCH-TS-ARIBA-DSGN-RNTM-01 @BQ_SINK @FILE_PATH @BQ_SINK_CLEANUP @BQ_TEMP_CLEANUP
@BATCH-TS-ARIBA-DSGN-RNTM-01 @BQ_SINK @FILE_PATH @BQ_SINK_CLEANUP @BQ_TEMP_CLEANUP @Required
Scenario: Verify data is transferred correctly to BQ for System Type prod
When Open Datafusion Project to configure pipeline
And Select plugin: "SAP Ariba" from the plugins list as: "Source"
Expand Down
2 changes: 1 addition & 1 deletion src/e2e-test/features/aribasource/DesignTime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Regression
Feature: Ariba Source - Design time scenarios

@BATCH-TS-ARIBA-DSGN-01
@BATCH-TS-ARIBA-DSGN-01 @Required
Scenario Outline: Verify user should be able to validate output schema for the plugin when System Type is prod
When Open Datafusion Project to configure pipeline
And Select plugin: "SAP Ariba" from the plugins list as: "Source"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright © 2023 Cask Data, Inc.
*
* 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 io.cdap.plugin.tests.runner;

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

/**
* Test Runner to execute Ariba plugin's Required/P1 test scenarios.
*/
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/e2e-test/features"},
glue = {"io.cdap.plugin.aribasource.stepsdesign", "stepsdesign", "io.cdap.plugin.tests.hooks"},
tags = {"@Required"},
monochrome = true,
plugin = {"pretty", "html:target/cucumber-html-report", "json:target/cucumber-reports/cucumber.json",
"junit:target/cucumber-reports/cucumber.xml"}
)

public class TestRunnerRequired {
}

0 comments on commit 8189cb6

Please sign in to comment.