-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow special characters and @RoqnRoll test
- Loading branch information
Showing
198 changed files
with
1,555 additions
and
488 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
%gh-pages.site.url=https://pages.quarkiverse.io/ | ||
%gh-pages.quarkus.http.root-path=/quarkus-roq/ | ||
quarkus.web-bundler.dependencies.auto-import=all | ||
quarkus.log.category."io.quarkiverse.roq.frontmatter.deployment".level=DEBUG | ||
#quarkus.log.category."io.quarkiverse.roq.frontmatter.deployment".level=DEBUG | ||
#quarkus.log.category."io.quarkiverse.roq.generator".level=DEBUG | ||
quarkus.default-locale=en | ||
quarkus.asciidoctorj.attributes.icons=font | ||
quarkus.asciidoctorj.attributes.source-highlighter=highlight.js |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Binary file added
BIN
+5.85 MB
blog/content/posts/2025-01-28-roq-and-roll-test/c'est de la poussière d'étoile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
title: "Roq n Roll Your Tests" | ||
description: Testing the actual Roq generation has never been this cool! 🎸 | ||
image: "c'est de la poussière d'étoile.jpg" | ||
tags: cool-stuff | ||
author: ia3andy | ||
--- | ||
|
||
# Roq n Roll Your Tests 🎶 | ||
|
||
Hello folks, | ||
|
||
I'm excited to share something very cool! I've developed a way to: | ||
- Test the **full generation** of your website. | ||
- Use **RestAssured** to test the generated site (thanks to an already started static server). | ||
|
||
### Step 1: Add the Dependency | ||
|
||
First, include the `quarkus-roq-testing` test dependency in your `pom.xml`. | ||
|
||
### Step 2: Basic Test Example | ||
|
||
Once you've added the dependency, you can easily ensure all pages are generated without errors: | ||
|
||
```java | ||
@QuarkusTest | ||
@RoqAndRoll | ||
public class RoqSiteTest { | ||
// All pages will be validated during test setup | ||
} | ||
``` | ||
|
||
That's it! This basic test already verifies that your site generation is error-free. | ||
|
||
--- | ||
|
||
### Step 3: Test the Generated Content | ||
|
||
To go even further, you can test the actual content of your generated site. Here's how: | ||
|
||
```java | ||
@QuarkusTest | ||
@RoqAndRoll | ||
public class RoqSiteTest { | ||
RoqServer roq; // Injected server info | ||
|
||
@Test | ||
public void testIndex() { | ||
given().port(roq.port()) | ||
.when().get("/") | ||
.then() | ||
.statusCode(200) | ||
.body(containsString( | ||
"A Static Site Generator to easily create a static website or blog using Quarkus super-powers." | ||
)); | ||
} | ||
} | ||
``` | ||
|
||
--- | ||
|
||
### Why I Love It ❤️ | ||
|
||
With just a few annotations and a bit of setup, you can effortlessly test both the generation process and the content of your site. It's powerful, elegant, and super simple to use. | ||
|
||
Give it a try and let me know how it works for you. Happy testing! 🚀 |
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
This file was deleted.
Oops, something went wrong.
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
110 changes: 0 additions & 110 deletions
110
docs/modules/ROOT/pages/_includes/quarkus-roq-generator.adoc
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.