Skip to content

Commit

Permalink
STUFF
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Apr 21, 2021
1 parent 8eaac6e commit 52f9988
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
22 changes: 19 additions & 3 deletions docs/contributing/running-tests.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Running the tests
## Running the tests

#### Java versions
### Java versions

Open Telemetry Auto Instrumentation's minimal supported version is java 8.
All jar files that we produce, unless noted otherwise, have bytecode
Expand All @@ -13,7 +13,7 @@ higher java version as required by library. The resulting classes will have
higher bytecode level, but as it matches library's java version, no runtime
problem arise.

#### Instrumentation tests
### Instrumentation tests

Executing `./gradlew instrumentation:test` will run tests for all supported
auto-instrumentations using that java version which runs the Gradle build
Expand All @@ -37,3 +37,19 @@ To run these tests locally, add `-PtestLatestDeps=true` to your existing `gradle
#### Executing single test

Executing `./gradlew :instrumentation:<INSTRUMENTATION_NAME>:test --tests <GROOVY TEST FILE NAME>` will run only the selected test.

### Smoke tests

The smoke tests are not run by default since they take a long time and are not relevant for most
contributions.
If you need to run a specific smoke test:

```
./gradlew :smoke-tests:test -PsmokeTestSuite=glassfish -PrunSmokeTests=true
```

If you are on Windows and you want to run the tests using linux containers:

```
USE_LINUX_CONTAINERS=1 ./gradlew :smoke-tests:test -PsmokeTestSuite=glassfish -PrunSmokeTests=true
```
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ abstract class AppServerTest extends SmokeTest {
serverVersion = appServer.version()
jdk = appServer.jdk()

isWindows = System.getProperty("os.name").toLowerCase().contains("windows")
isWindows = System.getProperty("os.name").toLowerCase().contains("windows") &&
"1" != System.getenv("USE_LINUX_CONTAINERS")
startTarget(jdk, serverVersion, isWindows)
}

Expand Down

0 comments on commit 52f9988

Please sign in to comment.