Skip to content

Commit

Permalink
Refactor to no longer have Test jar
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 28, 2024
1 parent 4f8c1b5 commit 2752323
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 42 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ All the information you need to use Quarkus Playwright is in the [user documenta
The primary use case for Playwright is integration with `@QuarkusTest` for end-to-end testing of your application. You can easily create effective cross-browser end-to-end tests for your Quarkus web application using Playwright with frameworks such as Qute, Quinoa, Renarde, Web-Bundler, and MyFaces. Playwright Test was specifically designed to meet the requirements of end-to-end testing. It supports all modern rendering engines, including Chromium, WebKit, and Firefox. You can run tests on Windows, Linux, and macOS—either locally or in CI—both in headless and headed modes, with native mobile emulation for Google Chrome on Android and Mobile Safari.


Just add the `test` dependency to pom.xml:
Just add the dependency as `<scope>test</scope>` to pom.xml:
```xml
<dependency>
<groupId>io.quarkiverse.playwright</groupId>
<artifactId>quarkus-playwright-test</artifactId>
<artifactId>quarkus-playwright</artifactId>
<version>${playwright.version}</version>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.microsoft.playwright.options.Timing;
import com.microsoft.playwright.options.ViewportSize;

import io.quarkiverse.playwright.runtime.PlaywrightRecorder;
import io.quarkiverse.playwright.PlaywrightRecorder;
import io.quarkus.deployment.IsNormal;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ https://playwright.dev/[Playwright] is an open-source automation library designe

The primary use case for Playwright is integration with `@QuarkusTest` for end-to-end testing of your application. You can easily create effective cross-browser end-to-end tests for your Quarkus web application using Playwright with frameworks such as Qute, Quinoa, Renarde, Web-Bundler, and MyFaces. Playwright Test was specifically designed to meet the requirements of end-to-end testing. It supports all modern rendering engines, including Chromium, WebKit, and Firefox. You can run tests on Windows, Linux, and macOS—either locally or in CI—both in headless and headed modes, with native mobile emulation for Google Chrome on Android and Mobile Safari.

Just add the `test` dependency to `pom.xml`:
Just add the dependency as `<scope>test</scope>` to your `pom.xml`:

[source,xml,subs=attributes+]
----
<dependency>
<groupId>io.quarkiverse.playwright</groupId>
<artifactId>quarkus-playwright-test</artifactId>
<artifactId>quarkus-playwright</artifactId>
<version>{project-version}</version>
<scope>test</scope>
</dependency>
Expand Down
11 changes: 5 additions & 6 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,16 @@
<version>3.7.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.quarkiverse.playwright</groupId>
<artifactId>quarkus-playwright-test</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<pluginManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public void testIndex() {
Assertions.assertEquals("Hello from RESTEasy Reactive", greeting);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ public void testIndex() {
Assertions.assertEquals("Hello from RESTEasy Reactive", greeting);
}

}
}
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<modules>
<module>deployment</module>
<module>runtime</module>
<module>testing</module>
</modules>
<scm>
<connection>scm:git:[email protected]:quarkiverse/quarkus-playwright.git</connection>
Expand Down Expand Up @@ -106,4 +105,4 @@
</modules>
</profile>
</profiles>
</project>
</project>
11 changes: 10 additions & 1 deletion runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
<groupId>com.microsoft.playwright</groupId>
<artifactId>driver-bundle</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<optional>true</optional>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -63,4 +72,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkiverse.playwright.runtime;
package io.quarkiverse.playwright;

import java.io.IOException;
import java.net.URI;
Expand Down
25 changes: 0 additions & 25 deletions testing/pom.xml

This file was deleted.

0 comments on commit 2752323

Please sign in to comment.