Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8432999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:16:15+00:00 2026-06-10T06:16:15+00:00

When you issue ‘mvn gwt:test’, Maven creates a target/www-test -directory. This dir contains the

  • 0

When you issue ‘mvn gwt:test’, Maven creates a target/www-test -directory. This dir contains the actual tests being ran under another directory based on you package, e.g. target/www-test/com.mydomain.test.SomeApp.JUnit

I need to include a javascript file to this directory, or my tests will fail. How do I do this ? The documentation doesn’t seem to provide an option to include files here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:16:17+00:00Added an answer on June 10, 2026 at 6:16 am

    The subfolder name is actually based upon the module name your GWTTestCase returns from getModuleName(), with a JUnit suffix (GWT generates on-the-fly a module that inherits your module and the com.google.gwt.junit.JUnit module, among other things).

    So, if you need some specific things for your test, you can very well create a test-specific module that inherits your “standard” module, and return that new module from getModuleName (GWT unit tests do that for testing some set-property or set-configuration-property values, or declare servlets for testing GWT-RPC, RequestFactory or FormPanel, for instance).

    Now, if you only need a JS file, you can put it in your public path (i.e. by default, a public folder next to your gwt.xml module descriptor file). And you can use <script> in your gwt.xml to automatically pull that script inside the test page (because tests use a standard junit.html or junit-standard.html web page). If you really need to, you can override that HTML page by putting one with the same name in your public path, it should then override the one from the com.google.gwt.junit.JUnit module (you might have to explicitly inherit that module though, so its public path comes before yours)

    See also:
    https://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizingProjects#DevGuideModules
    http://code.google.com/p/google-web-toolkit/wiki/ResourceOracle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ISSUE: The UItextview Keyboard Getting Animated. Am doing one iphone app. In this app
Issue is that I have one value that is returned by $(this).attr(ows_Modified); //(Sharepoint and
This issue has been driving me insane. On two separate projects (both of which
Issue is related to this and this . The problem is that when a
The issue is obvious here. https://www.facebook.com/TabascoUK/app_202624839826809 Using Google Chrome on Windows XP, FB.Canvas.setAutoGrow miscalculates
The issue is occurring under the 'Account Services Team' section on this page .
Issue is that I can't change a column type to 'Text' This is the
Issue: I have a markup like this (only the important lines): <%@ Control Language=C#
issue is with the ShowPath(); method as it keeps overloading this code is supposed
Issue Working with TestNG on a maven managed project, i can't seem to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.