Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated tests do not compile #573

Closed
sinha108 opened this issue Mar 2, 2023 · 0 comments
Closed

Generated tests do not compile #573

sinha108 opened this issue Mar 2, 2023 · 0 comments
Assignees
Labels

Comments

@sinha108
Copy link

sinha108 commented Mar 2, 2023

Describe the bug
The generated test case class (<crawl_dir>/src/test/java/generated/GeneratedTests.java) does not compile:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project generated-test: Compilation failure: Compilation failure: 
[ERROR] .../crawl0/src/test/java/generated/GeneratedTests.java:[46,131] ')' expected
[ERROR] .../crawl0/src/test/java/generated/GeneratedTests.java:[46,146] not a statement
[ERROR] .../crawl0/src/test/java/generated/GeneratedTests.java:[46,150] ';' expected

Corresponding test code:

builder.setBrowserConfig(new BrowserConfiguration(BrowserType.CHROME_HEADLESS, 1, new BrowserOptions( pixelDensity: 1, USE_CDP : true)));

The POM velocity template probably needs to be updated (Java compiler version, crawljax dependency).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants