Hi. I don't use it personally, but Java 18+ has jwebserver which you can use to server a folder of files very easily. And then you can use any browser testing framework such as Selenium Webdriver to run tests against it. You can also run it programmatically ( https://docs.oracle.com/en/java/javase/18/docs/api/jdk.httpserver/com/sun/net/httpserver/SimpleFileServer.html) so you can initialize it inside unit tests if you wish.
ma 7. marrask. 2022 klo 19.12 Greg Chabala (greg.chab...@gmail.com) kirjoitti: > I'm a fan of the project websites generated by maven-site-plugin, but I've > noticed over the years that there's a lot of moving pieces in the site > generation phase. > > Sometimes upgrading a reporting plugin will produce unexpected site > changes, or it may be the interaction of several plugins, etc. Noticing > after you've published is annoying. > > What are folks using to validate their sites programmatically? Are there > plugins that bind to post-site and perform tests? Perhaps they spin up the > site in Jetty? > > The only plugin I'm aware of is linkcheck, which is useful but not a > comprehensive site validation tool. > > Greg Chabala >