Skip to content

StefanoBelli/Whork

Repository files navigation

Whork build

Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status

Whork

ISPW project a.y. 2020/2021

Compatability notes

  • Browser automated testing is available on Windows and Linux only
  • Project will be compiled iff using JDK version >= 11
  • Project will be run iff JRE version >= 11
  • Database schema requires MySQL Server version >= 8
  • If jfx WebView cannot be shown, most likely it is a module importing error, add the following args to VM:
    --add-modules javafx.controls,javafx.fxml,javafx.web --add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED
    
    (thanks Mike-98)

Testing

Testing is achieved on two "levels":

  • Unit testing
  • "Browser automated" testing (via Selenium API and IDE)

How to run tests manually

$ pwd # ensure we are inside root project directory (which includes pom.xml)
*/Whork
$ mvn test # runs unit tests
$ ./run-selenium-tests.sh # runs Selenium API tests
$ chromium . # from there open project (in side/whork-*.side) using Selenium IDE plugin

Devel: generating logic.ExtractorFileLister

$ ./res_codegen.py > src/main/java/logic/ExtractorFileLister.java