Skip to content

Commit

Permalink
exclude fct tests from regular test scope
Browse files Browse the repository at this point in the history
  • Loading branch information
AFine-gs committed Nov 25, 2024
1 parent 84066d1 commit 4739b7b
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,26 @@
package org.finos.legend.pure.code.core;

import junit.framework.TestSuite;
import org.eclipse.collections.api.block.predicate.Predicate;
import org.finos.legend.pure.m3.execution.test.PureTestBuilder;
import org.finos.legend.pure.m3.execution.test.TestCollection;
import org.finos.legend.pure.m4.coreinstance.CoreInstance;
import org.finos.legend.pure.runtime.java.compiled.execution.CompiledExecutionSupport;
import org.finos.legend.pure.runtime.java.compiled.testHelper.PureTestBuilderCompiled;
import static org.finos.legend.pure.m3.fct.shared.FCTTools.isFCTTest;

public class Test_Analytics_Lineage
{
public static TestSuite suite()
{

CompiledExecutionSupport executionSupport = PureTestBuilderCompiled.getClassLoaderExecutionSupport();
Predicate<? super CoreInstance> filter = ci -> PureTestBuilder.satisfiesConditions(ci, executionSupport.getProcessorSupport()) && !isFCTTest(ci, executionSupport.getProcessorSupport());

TestSuite suite = new TestSuite();
suite.addTest(PureTestBuilderCompiled.buildSuite(TestCollection.collectTests("meta::analytics::lineage::tests", executionSupport.getProcessorSupport(), ci -> PureTestBuilder.satisfiesConditions(ci, executionSupport.getProcessorSupport())), executionSupport));
suite.addTest(PureTestBuilderCompiled.buildSuite(TestCollection.collectTests("meta::pure::lineage::scanExecutes::test", executionSupport.getProcessorSupport(), ci -> PureTestBuilder.satisfiesConditions(ci, executionSupport.getProcessorSupport())), executionSupport));
suite.addTest(PureTestBuilderCompiled.buildSuite(TestCollection.collectTests("meta::pure::lineage::scanProject::test", executionSupport.getProcessorSupport(), ci -> PureTestBuilder.satisfiesConditions(ci, executionSupport.getProcessorSupport())), executionSupport));
suite.addTest(PureTestBuilderCompiled.buildSuite(TestCollection.collectTests("meta::analytics::lineage::tests", executionSupport.getProcessorSupport(), filter), executionSupport));
suite.addTest(PureTestBuilderCompiled.buildSuite(TestCollection.collectTests("meta::pure::lineage::scanExecutes::test", executionSupport.getProcessorSupport(), filter), executionSupport));
suite.addTest(PureTestBuilderCompiled.buildSuite(TestCollection.collectTests("meta::pure::lineage::scanProject::test", executionSupport.getProcessorSupport(), filter), executionSupport));
return suite;
}
}

0 comments on commit 4739b7b

Please sign in to comment.