Concordion

Author: m | 2025-04-24

★★★★☆ (4.3 / 3807 reviews)

Download carbonatedtv

An extension to Concordion to add logging information unobtrusively to the Concordion output. - concordion/concordion-logging-tooltip-extension

caffeine

GitHub - concordion/concordion: Concordion is an

Concordion is an open source runner for executable specifications that creates rich living documentation.Users should see the Concordion web site for details of how to download and use Concordion.This README covers information for people wanting to work with the Concordion Java source code.Unmaintained versions of Concordion are also available for other languages, but not with the full feature set.See Concordion.NET, pyconcordion and ruby-concordion.Target Java versionConcordion currently targets Java 8 and above.Building ConcordionConcordion uses Gradle as a build tool. The code base includes the Gradle Wrapper, which will automatically download the correct version of Gradle.From the command line, run gradlew tasks to show available tasks.Note: If the current directory is not on your path, you will need to use ./gradlew tasks on Unix-based systems, or .\gradlew tasks on Windows.Compiling and Running the TestsThe test task runs both the Concordion specification tests and unit tests.Since Concordion supports both JUnit Vintage and JUnit Jupiter, the tests can run with either version of JUnit.To run the tests with JUnit Jupiter, run the following from the command line:gradlew clean testTo run the tests with JUnit Vintage, run the following from the command line:gradlew clean testVintageThis will download the required dependencies, clean the existing project, recompile all source code and run all the tests.The Concordion specification output is written to the ./build/reports/spec folder.Pre-processorTo switch between the JUnit Jupiter and Vintage tests, Concordion uses the Manifold preprocessor.For example:#if JUNIT_VINTAGE@RunWith(ConcordionRunner.class)#else@ConcordionFixture#endifThe JUNIT_VINTAGE compiler argument is set by the testVintage Gradle task.Creating a jar fileRun the following from the command line:gradlew clean jarThe jar file is written to the ./build/libs folder.Installing a jar file into your local Maven repositoryInstalling a Concordion jar file into your local Maven repository makes it available to other projects that are using Maven or Gradle to manage their dependencies.Run the following from the command line:gradlew pTML(where pTML is short for publishToMavenLocal).Using the Concordion jar file from your local Maven repository in a Gradle projectIn order to use the local Maven repository in a Gradle project, you must add mavenLocal() to your repositories block. You can add this to the project's build.gradle script, or set it Star (9) You must be signed in to star a gist Fork (1) You must be signed in to fork a gist Clone this repository at <script src=" Save eeichinger/2719776 to your computer and use it in GitHub Desktop. Clone this repository at <script src=" Save eeichinger/2719776 to your computer and use it in GitHub Desktop. Spring Test / Concordion integration - integrate Concordion with Spring's test runner This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters package testsupport; import org.concordion.api.ResultSummary; import org.concordion.internal.FixtureRunner; import org.junit.runner.Description; import org.junit.runners.model.FrameworkMethod; import org.junit.runners.model.InitializationError; import org.junit.runners.model.Statement; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class ConcordionSpringJunit4ClassRunner extends SpringJUnit4ClassRunner { private final Description fixtureDescription; private final FrameworkMethod fakeMethod; private ResultSummary result; public ConcordionSpringJunit4ClassRunner(Class fixtureClass) throws InitializationError, NoSuchMethodException { super(fixtureClass); String testDescription = ("[Concordion Specification for '" + fixtureClass.getSimpleName()).replaceAll("Test$", "']"); fixtureDescription = Description.createTestDescription(fixtureClass, testDescription); fakeMethod = new FrameworkMethod(this.getClass().getDeclaredMethod("computeTestMethods")); } @Override protected ListFrameworkMethod> computeTestMethods() { return new ArrayListFrameworkMethod>(Arrays.asList(fakeMethod)); } @Override protected Statement methodInvoker(FrameworkMethod method, final Object test) { return new Statement() { public void evaluate() throws Throwable { result = new FixtureRunner().run(test); } }; } @Override protected Description describeChild(FrameworkMethod method) { return fixtureDescription; } } This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters // ConcordionSpringJunit4ClassRunner supports everything that is supported by Spring & Concordion @RunWith( ConcordionSpringJunit4ClassRunner.class ) @ContextConfiguration("/test-applicationContext.xml") @Transactional @Ignore public class MyConcordionSpecification { @Autowired MyClassUnderTest instanceUnderTest; // ... whatever }

GitHub - concordion/concordion: Concordion is an open source

. An extension to Concordion to add logging information unobtrusively to the Concordion output. - concordion/concordion-logging-tooltip-extension

GitHub - concordion/concordion-tutorial-java-markdown: Concordion

GitHub - concordion/idea-concordion-support: Concordion support

GitHub - concordion/concordion-screenshot-extension: An

. An extension to Concordion to add logging information unobtrusively to the Concordion output. - concordion/concordion-logging-tooltip-extension The version history for the old Concordion website. - concordion/concordion-website-1.0

GitHub - concordion/concordion-parallel-run-extension: An

Comments

User3229

Concordion is an open source runner for executable specifications that creates rich living documentation.Users should see the Concordion web site for details of how to download and use Concordion.This README covers information for people wanting to work with the Concordion Java source code.Unmaintained versions of Concordion are also available for other languages, but not with the full feature set.See Concordion.NET, pyconcordion and ruby-concordion.Target Java versionConcordion currently targets Java 8 and above.Building ConcordionConcordion uses Gradle as a build tool. The code base includes the Gradle Wrapper, which will automatically download the correct version of Gradle.From the command line, run gradlew tasks to show available tasks.Note: If the current directory is not on your path, you will need to use ./gradlew tasks on Unix-based systems, or .\gradlew tasks on Windows.Compiling and Running the TestsThe test task runs both the Concordion specification tests and unit tests.Since Concordion supports both JUnit Vintage and JUnit Jupiter, the tests can run with either version of JUnit.To run the tests with JUnit Jupiter, run the following from the command line:gradlew clean testTo run the tests with JUnit Vintage, run the following from the command line:gradlew clean testVintageThis will download the required dependencies, clean the existing project, recompile all source code and run all the tests.The Concordion specification output is written to the ./build/reports/spec folder.Pre-processorTo switch between the JUnit Jupiter and Vintage tests, Concordion uses the Manifold preprocessor.For example:#if JUNIT_VINTAGE@RunWith(ConcordionRunner.class)#else@ConcordionFixture#endifThe JUNIT_VINTAGE compiler argument is set by the testVintage Gradle task.Creating a jar fileRun the following from the command line:gradlew clean jarThe jar file is written to the ./build/libs folder.Installing a jar file into your local Maven repositoryInstalling a Concordion jar file into your local Maven repository makes it available to other projects that are using Maven or Gradle to manage their dependencies.Run the following from the command line:gradlew pTML(where pTML is short for publishToMavenLocal).Using the Concordion jar file from your local Maven repository in a Gradle projectIn order to use the local Maven repository in a Gradle project, you must add mavenLocal() to your repositories block. You can add this to the project's build.gradle script, or set it

2025-04-07
User3551

Star (9) You must be signed in to star a gist Fork (1) You must be signed in to fork a gist Clone this repository at <script src=" Save eeichinger/2719776 to your computer and use it in GitHub Desktop. Clone this repository at <script src=" Save eeichinger/2719776 to your computer and use it in GitHub Desktop. Spring Test / Concordion integration - integrate Concordion with Spring's test runner This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters package testsupport; import org.concordion.api.ResultSummary; import org.concordion.internal.FixtureRunner; import org.junit.runner.Description; import org.junit.runners.model.FrameworkMethod; import org.junit.runners.model.InitializationError; import org.junit.runners.model.Statement; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class ConcordionSpringJunit4ClassRunner extends SpringJUnit4ClassRunner { private final Description fixtureDescription; private final FrameworkMethod fakeMethod; private ResultSummary result; public ConcordionSpringJunit4ClassRunner(Class fixtureClass) throws InitializationError, NoSuchMethodException { super(fixtureClass); String testDescription = ("[Concordion Specification for '" + fixtureClass.getSimpleName()).replaceAll("Test$", "']"); fixtureDescription = Description.createTestDescription(fixtureClass, testDescription); fakeMethod = new FrameworkMethod(this.getClass().getDeclaredMethod("computeTestMethods")); } @Override protected ListFrameworkMethod> computeTestMethods() { return new ArrayListFrameworkMethod>(Arrays.asList(fakeMethod)); } @Override protected Statement methodInvoker(FrameworkMethod method, final Object test) { return new Statement() { public void evaluate() throws Throwable { result = new FixtureRunner().run(test); } }; } @Override protected Description describeChild(FrameworkMethod method) { return fixtureDescription; } } This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters // ConcordionSpringJunit4ClassRunner supports everything that is supported by Spring & Concordion @RunWith( ConcordionSpringJunit4ClassRunner.class ) @ContextConfiguration("/test-applicationContext.xml") @Transactional @Ignore public class MyConcordionSpecification { @Autowired MyClassUnderTest instanceUnderTest; // ... whatever }

2025-03-29

Add Comment