Forum Discussion
mvn clean install -Dsl_build=0002
When i execute the above command, i am getting this exception
Results :
Tests in error:
characterCounter_WithSnapLogicAsInput_CountsOccurrences(com.snaplogic.snaps.CharacterCounterTest): Unable to get schema: com-snaplogic-snap-template_2
currencyConversion_WithExchangeRatesDataSupplier_ConvertsCorrectly(com.snaplogic.snaps.CurrencyConverterTest): Unable to get schema: com-snaplogic-snap-template_2
currencyConverstion_WithFieldMockedDirectly_ConvertsCorrectly(com.snaplogic.snaps.CurrencyConverterTest): Unable to get schema: com-snaplogic-snap-template_2
currencyConversion_WithCustomInjector_ConvertsCorrectly(com.snaplogic.snaps.CurrencyConverterTest): Unable to get schema: com-snaplogic-snap-template_2
currencyConversion_WithExchangeRatesFromDataFiles_ConvertsCorrectly(com.snaplogic.snaps.CurrencyConverterTest): Unable to get schema: com-snaplogic-snap-template_2
docConsumer_WithManualTestSetup_UpdatesCounterCorrectly(com.snaplogic.snaps.DocConsumerTest): Unable to get schema: com-snaplogic-snap-template_2
docGenerator_WithExpectedOutputPath_OutputsDocumentsCorrectly(com.snaplogic.snaps.DocGeneratorTest): Unable to get schema: com-snaplogic-snap-template_2
docGenerator_WithProperties_OutputsCorrectNumberOfDocuments(com.snaplogic.snaps.DocGeneratorTest): Unable to get schema: com-snaplogic-snap-template_2
docGenerator_WithPropertyOverrides_OutputsCorrectNumDocuments(com.snaplogic.snaps.DocGeneratorTest): Unable to get schema: com-snaplogic-snap-template_2
docGenerator_WithExpectedErrorPath_OutputsErrorDocumentCorrectly(com.snaplogic.snaps.DocGeneratorTest): Unable to get schema: com-snaplogic-snap-template_2
propertyTypes_WithFieldsCompositesAndTables_OutputsEvaluatedValuesDocument(com.snaplogic.snaps.PropertyTypesTest): Unable to get schema: com-snaplogic-snap-template_2
schemaExample_WithValidData_OutputsDocument(com.snaplogic.snaps.SchemaExampleTest): Unable to get schema: com-snaplogic-snap-template_2
schemaExample_WithInvalidData_OutputsErrorDocumentOnly(com.snaplogic.snaps.SchemaExampleTest): Unable to get schema: com-snaplogic-snap-template_2
singleDocGenerator_WithOutputView_OutputsCorrectNumDocuments(com.snaplogic.snaps.SingleDocGeneratorTest): Unable to get schema: com-snaplogic-snap-template_2
snapWithAccount_WithAccountProperties_OutputsCorrectToken(com.snaplogic.snaps.SnapWithAccountTest): Unable to get schema: com-snaplogic-snap-template_2
suggest_WithSuggestProperty_WritesResultsToSpecialOutputView(com.snaplogic.snaps.SuggestTest): Unable to get schema: com-snaplogic-snap-template_2
suggest_WithTestSetupAndSuggest_ReturnsCorrectValue(com.snaplogic.snaps.SuggestTest): Unable to get schema: com-snaplogic-snap-template_2
twoInputsTwoOutputs_WithParentsAndChildren_GroupsByGender(com.snaplogic.snaps.TwoInputsTwoOutputsTest): Unable to get schema: com-snaplogic-snap-template_2
Tests run: 18, Failures: 0, Errors: 18, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.273 s
[INFO] Finished at: 2018-11-07T21:29:37+04:00
[INFO] Final Memory: 71M/647M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project demosnappack: There are test failures.
[ERROR]
[ERROR] Please refer to c:\opt\snaplogic-dev\demosnappack\target\surefire-reports for the individual test results.
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
Looks like there is a bug in the test code. Does it work when you skip the unit tests?
mvn clean install -Dsl_build=0002 -DskipTests