All Projects → rherrmann → osgi-testsuite

rherrmann / osgi-testsuite

Licence: EPL-1.0 license
The OSGi Test Suite runs all JUnit tests in a given list of bundles

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
HTML
75241 projects

Projects that are alternatives of or similar to osgi-testsuite

osgi-test
Testing support for OSGi. Includes JUnit 4 and JUnit 5 support and AssertJ support.
Stars: ✭ 22 (+46.67%)
Mutual labels:  osgi, junit
atomos
Atomos - A Java Module Framework using OSGi Connect
Stars: ✭ 12 (-20%)
Mutual labels:  osgi
doc
QuickPerf documentation: https://github.com/quick-perf/doc/wiki/QuickPerf
Stars: ✭ 22 (+46.67%)
Mutual labels:  junit
Starwars-clean
Simple project with clean architecture
Stars: ✭ 34 (+126.67%)
Mutual labels:  junit
cactoos-matchers
Elegant object-oriented hamcrest matchers
Stars: ✭ 30 (+100%)
Mutual labels:  junit
McTester
An integration testing framework for Minecraft
Stars: ✭ 39 (+160%)
Mutual labels:  junit
Dntframeworkcore
Lightweight and Extensible Infrastructure for Building Web Applications - Web Application Framework
Stars: ✭ 208 (+1286.67%)
Mutual labels:  integration-testing
HiveRunner
An Open Source unit test framework for Hive queries based on JUnit 4 and 5
Stars: ✭ 244 (+1526.67%)
Mutual labels:  junit
clj-test-containers
Control Docker containers from your test lifecycle for Clojure integration tests.
Stars: ✭ 116 (+673.33%)
Mutual labels:  integration-testing
Library-Spring
The library web application where you can borrow books. It's Spring MVC and Hibernate project.
Stars: ✭ 73 (+386.67%)
Mutual labels:  junit
Hexagonal-architecture-ASP.NET-Core
App generator API solution template which is built on Hexagnonal Architecture with all essential feature using .NET Core
Stars: ✭ 57 (+280%)
Mutual labels:  integration-testing
cdi-test
JUnit extension for easy and efficient testing of CDI components
Stars: ✭ 23 (+53.33%)
Mutual labels:  junit
Learn-to-Code
Learn to Code - for Free
Stars: ✭ 15 (+0%)
Mutual labels:  junit
junit.testlogger
JUnit test logger for vstest platform
Stars: ✭ 61 (+306.67%)
Mutual labels:  junit
springboot-rest-api-angularjs-https
REST API https with Spring Boot and Angular JS. Use MySQL, Hibernate and Spring Security.
Stars: ✭ 38 (+153.33%)
Mutual labels:  junit
Skrape.it
A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. It aims to be a testing lib, but can also be used to scrape websites in a convenient fashion.
Stars: ✭ 231 (+1440%)
Mutual labels:  integration-testing
portman
Port OpenAPI Specs to Postman Collections, inject test suite and run via Newman 👨🏽‍🚀
Stars: ✭ 530 (+3433.33%)
Mutual labels:  integration-testing
pythonista-chromeless
Serverless selenium which dynamically execute any given code.
Stars: ✭ 31 (+106.67%)
Mutual labels:  integration-testing
camunda-bpm-platform-osgi
OSGi integration for Camunda Platform 7
Stars: ✭ 20 (+33.33%)
Mutual labels:  osgi
xunit-to-junit
This Extensible Stylesheet Language Transformations can transform a xUnit.net v2 XML test results file into a JUnit test results file.
Stars: ✭ 21 (+40%)
Mutual labels:  junit

Automated OSGi Test Suite

Build Status Version EPL licensed

The OSGi Test Suite is a JUnit test runner that lets you specify a list of bundles and runs all tests contained in these bundles. The test runner is provided as a bundle itself so that it can be easily consumed from OSGi projects.

Usage

Annotate a class with @RunWith(BundleTestSuite.class) and @TestBundles({"bundle.1", ...}). When you run this class, it will run all the tests in all the bundles. A test class is identified by its name. By default all public classes whose names end with 'Test' are considered test classes.

For example:

@RunWith( BundleTestSuite.class )
@TestBundles( { "org.example.bundle1", "org.example.bundle2" } )
public class MasterTestSuite {
}

The MasterTestSuite will execute all '*Test' classes from bundle1 and bundle2.

If the default strategy to identify test classes is not suitable, it can be overridden with the @ClassnameFilters({"filterExpression", ...}) annotation. The list of regular expressions is used match test class names that should be included and excluded.

For Example:

@RunWith( BundleTestSuite.class )
@TestBundles( { "org.example.bundle1", "org.example.bundle2" } )
@ClassnameFilters( { ".*IntegrationTest", "!.*FooIntegrationTest" } )
public class IntegrationTestSuite {
}

The example runs all test cases in bundle1 and bundle2 that are named with the postfix IntegrationTest but exclude those with the postfix FooIntegrationTest.

Optionally, a no match policy can be defined that determines what happens if no test classes can be found in one or more of the specified bundles. Available choices are IGNORE (do nothing), WARN (write a message to the console), and FAIL (abort test execution by throwing an exception).

For example:

@RunWith( BundleTestSuite.class )
@TestBundles( value = "org.example.bundle", noMatchPolicy = NoMatchPolicy.FAIL )
public class MasterTestSuite {
}

In order to remain backward compatibility with previous versions, the default value is IGNORE.

Download & Integration

The p2 repository

http://rherrmann.github.io/osgi-testsuite/repository

contains a feature with a single bundle. Add this to your target platform.

In order to use the BundleTestSuite, Require-Bundle or Package-Import the bundle/package com.codeaffine.osgi.testsuite. In addition an implementation of the OSGi specification Release 5 (tested with Eclipse Equinox 3.8), JUnit 4.8 or later, and a JRE version 1.5 or later is required.

Lincense

The code is published under the terms of the Eclipse Public License, version 1.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].