schemaspy icon indicating copy to clipboard operation
schemaspy copied to clipboard

Can't run integration tests from IDE

Open npetzall opened this issue 3 years ago • 2 comments

It's not possible to run Integration tests from IDE due to a requirement that software is packaged as Jar

If there is a workaround let's document it, if not we should consider brining some "dead code" back, by handling the case when layout.url() is file protocol instead of jar.

npetzall avatar Mar 13 '23 22:03 npetzall

https://www.jetbrains.com/help/idea/work-with-tests-in-maven.html

From intellij, it's a complex workaround. Strange that it's not autogenerated the same way it's done with gradle.

npetzall avatar Mar 14 '23 07:03 npetzall

There is an option to create a ZipFileSystem, which means that we might be able to treat the sources as Path objects, and copy them to target. More or less, if jar create ZipFileSystem and then walking the Path and copy.

More the same handling for both, just that the ZipFileSystem needs to be setup.

npetzall avatar Mar 15 '23 00:03 npetzall