Skip to content

Commit

Permalink
Update TestingBundles.md - fix typos
Browse files Browse the repository at this point in the history
Thi commit fixes the bnd goal name and few smaller language improvements.
  • Loading branch information
iachelini authored and laeubi committed Oct 16, 2023
1 parent 1a82572 commit 3c8a8cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/site/markdown/TestingBundles.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ that require an OSGi Framework running and is executed in the integration-test p
There are two ways to use this:

1. You use the `eclipse-test-plugin` packaging, and with those your plugin must only contain test-classes and they will be executed automatically as part
of the integration-test phase of your build. This aproach is not recommended for new designs.
of the integration-test phase of your build. This approach is not recommended for new designs.
2. You use `eclipse-plugin` packaging and configure an additional execution of the `tycho-surefire-plugin:plugin-test` goal with either a test-source folder
(see below), alternatively using the [standard maven layout](https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html).

Expand Down Expand Up @@ -81,7 +81,7 @@ A sample snippet looks like this:
</project>
```

To execute the tests, one has to invoke maven with `mvn verify`, the following demo projects are provided as an example:
To execute the tests, one must invoke maven with `mvn verify`, the following demo projects are provided as an example:

- Project with a configured source folder as a standalone project similar to the discouraged `eclipse-test-plugin` packaging:
https://github.com/eclipse-tycho/tycho/tree/master/demo/testing/tycho/standalone
Expand All @@ -91,7 +91,7 @@ https://github.com/eclipse-tycho/tycho/tree/master/demo/testing/tycho/samemodule
### bnd-testing

The [tycho-surefire-plugin](https://tycho.eclipseprojects.io/doc/master/tycho-surefire-plugin/plugin-info.html) has also support for [bnd-testing](https://bnd.bndtools.org/chapters/310-testing.html),
this is similar to `plugin-test` but uses the BND testing framework. There is currently no JDT/PDE equivalent but this integrates nicely with the [OSGi Testing Support](https://github.com/osgi/osgi-test) and allows to execute prebuild test-bundles.
this is like `plugin-test` but uses the BND testing framework. There is currently no JDT/PDE equivalent but this integrates nicely with the [OSGi Testing Support](https://github.com/osgi/osgi-test) and allows to execute prebuild test-bundles.

A sample snippet looks like this:

Expand All @@ -109,7 +109,7 @@ A sample snippet looks like this:
<execution>
<id>execute-integration-tests</id>
<goals>
<goal>bnd-test-test</goal>
<goal>bnd-test</goal>
<goal>verify</goal>
</goals>
</execution>
Expand All @@ -130,4 +130,4 @@ to automatically inject services:

### combining different approaches

### setup test source folders in eclipse
### setup test source folders in eclipse

0 comments on commit 3c8a8cc

Please sign in to comment.