integration-testing

DocuSign integration tests

不羁岁月 提交于 2020-02-25 05:59:30
问题 I am writing an application that should interact with DocuSign to create envelopes and then download the signed document when all the signatories have signed. There are several other use cases, but that does not matter for this question. I am wondering what is the best way to write automated integration tests. Do I need to automate the interaction of the signatories withe DocuSign? This would mean that I have to receive the email, click the link, etc... Even if it seems possible, it does not

Arquillian: Adding beans.xml causes “ArquillianServletRunner not found”

余生长醉 提交于 2020-02-23 09:40:31
问题 I am using Arquillian[1] for testing my J2EE-App in an embedded glassfish environment inside Eclipse[2]-IDE. package test.java; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.shrinkwrap.api.ArchivePaths; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.spec.WebArchive; import org.junit.Assert; import org.junit.Test; import org.junit.runner

Preventing truncation of long strings in pytest

吃可爱长大的小学妹 提交于 2020-02-21 10:22:10
问题 I have written a test harness for system tests of our code using pytest. These tests are used in our continuous integration system so I am using the junit xml output option. The truncation of long strings by pytest is causing me problems. I know I can prevent it using the -vv option but then that gives verbose output for the results of each test which is difficult to read. Essentially I want a different way to prevent the truncation of the long string at least in the junit xml file. If it

Preventing truncation of long strings in pytest

℡╲_俬逩灬. 提交于 2020-02-21 10:21:26
问题 I have written a test harness for system tests of our code using pytest. These tests are used in our continuous integration system so I am using the junit xml output option. The truncation of long strings by pytest is causing me problems. I know I can prevent it using the -vv option but then that gives verbose output for the results of each test which is difficult to read. Essentially I want a different way to prevent the truncation of the long string at least in the junit xml file. If it

Kotlin internal members not accessible from alternative test source set in Gradle

…衆ロ難τιáo~ 提交于 2020-02-02 02:44:06
问题 Following https://docs.gradle.org/current/userguide/java_testing.html#sec:configuring_java_integration_tests and https://www.michael-bull.com/blog/2016/06/04/separating-integration-and-unit-tests-with-gradle we are attempting to separate our integration tests from plain unit tests. The problem we have is internal members in Kotlin are not accessible from such tests. As per Kotlin doco there is a visibility exception for test source sets. The internal visibility modifier means that the member

Parallel Cypress tests on TeamCity

喜欢而已 提交于 2020-02-01 09:24:46
问题 We currently have a repo containing 24 integration/*.js files. We are successfully running Cypress tests via our TeamCity CI workflow, however, I am unable to get the tests to run in parallel. By way of configuration, we have the repo/tests wired up to an org in dashboard.cypress.io. Along with the dashboard key, we are calling Cypress in a TeamCity build step via npm run with the following configs in our package.json scripts{} : "cypress:run:qa": "cypress run -c cypress.qa.json --record -

How to check if @KafkaListener was invoked in integration test?

拟墨画扇 提交于 2020-01-25 08:32:06
问题 I would like to write an integration test for whole kafka flow. In my production code I have: @KafkaListener(topics = "myTopic") public void listen(@Payload String payload) { log.debug("processing payload: '{}' ", payload); // business logic here } In my test code I use KafkaProducer<String, String> producer; to send messages to specific topic. I would like to have a hook that would indicate that @KafkaListener was called. I could insert some delay into test but it's a bad practice and I want

Spring integration test with custom application context

让人想犯罪 __ 提交于 2020-01-25 07:08:03
问题 For my application I created my own type of ApplicationContext that allows me to interact in specific manners that are needed for may application. As the application is a desktop application, I create the context like this: @SpringBootApplication @Import(StandaloneConfiguration.class) @PropertySource(value = {"application.properties", "server.properties"}) public class OpenPatricianApplication extends Application { private ApplicationContext context; @Override public void init() {

Spring integration test with custom application context

一笑奈何 提交于 2020-01-25 07:07:04
问题 For my application I created my own type of ApplicationContext that allows me to interact in specific manners that are needed for may application. As the application is a desktop application, I create the context like this: @SpringBootApplication @Import(StandaloneConfiguration.class) @PropertySource(value = {"application.properties", "server.properties"}) public class OpenPatricianApplication extends Application { private ApplicationContext context; @Override public void init() {

Plenty errors while doing Integration Tests

本秂侑毒 提交于 2020-01-25 06:50:08
问题 I have been following this tutorial on Integration tests: https://code-maze.com/integration-testing-asp-net-core-mvc/ My classes look very similar to his. I will also leave the code here: using Intersection; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; using System; using System.Collections.Generic; using System.Text; using System.Linq; using Microsoft.EntityFrameworkCore; using Intersection.Models; using Microsoft.Extensions.DependencyInjection; namespace