This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 217456 - Running junit test results in 'Unknown option: -mixed'
Summary: Running junit test results in 'Unknown option: -mixed'
Status: RESOLVED DUPLICATE of bug 220239
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-27 11:23 UTC by azgul
Modified: 2012-12-20 12:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (63.99 KB, text/plain)
2012-08-27 11:23 UTC, azgul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description azgul 2012-08-27 11:23:06 UTC
I am unable to run my junit tests through NetBeans. I'm using the following java libraries in the project:
junit-4.10
selenium-java-2.24.1
selenium-server-standalone-2.24.1

Running the same test with ant through command line results in a successful build.

Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_34
Runtime = Java HotSpot(TM) Client VM 20.9-b04
Comment 1 azgul 2012-08-27 11:23:11 UTC
Created attachment 123602 [details]
IDE log
Comment 2 Jiri Rechtacek 2012-08-31 16:10:56 UTC
Could you describe you problem in detail? The log did not help much to understand what went wrong. Thanks
Comment 3 bnwemon 2012-10-03 19:05:27 UTC
I get this trouble too.
When I add only "selenium-java-2.25.0", doesn't got this problem.
But when add "selenium-java-standalone-2.25.0", this problem is occured. 

This is console output.
=============================
Unknown option: -mixed
Usage: <main class> [options]
 The XML suite files to run
  Options:
    -configfailurepolicy               Configuration failure policy (skip or
                                       continue)
    -d                                 Output directory
    -dataproviderthreadcount           Number of threads to use when running
                                       data providers
    -excludegroups                     Comma-separated list of group names to 
                                       exclude
    -groups                            Comma-separated list of group names to be
                                       run
    -junit                             JUnit mode
                                       Default: false
    -listener                          List of .class files or list of class
                                       names implementing ITestListener or
                                       ISuiteListener
    -methods                           Comma separated of test methods
                                       Default: []
    -methodselectors                   List of .class files or list of class
                                       names implementing IMethodSelector
    -objectfactory                     List of .class files or list of class
                                       names implementing ITestRunnerFactory
    -parallel                          Parallel mode (methods, tests or classes)
    -port                              The port
    -reporter                          Extended configuration for custom report
                                       listener
    -suitename                         Default name of test suite, if not
                                       specified in suite definition file or
                                       source code
    -suitethreadpoolsize               Size of the thread pool to use to run
                                       suites
                                       Default: 1
    -testclass                         The list of test classes
    -testjar                           A jar file containing the tests
    -testname                          Default name of test, if not specified in
                                       suitedefinition file or source code
    -testnames                         The list of test names to run
    -testrunfactory, -testRunFactory   The factory used to create tests
    -threadcount                       Number of threads to use when running
                                       tests in parallel
    -usedefaultlisteners               Whether to use the default listeners
                                       Default: true
    -log, -verbose                     Level of verbosity

Java Result: 1
test:
Comment 4 Jost0 2012-12-20 11:36:06 UTC
I can confirm this behavior on Linux (XUbuntu 12.10), with netbeans 7.2.1 and selenium 2.25.0. I you tell me where to look (email), I'll provide further info.
Comment 5 Theofanis Oikonomou 2012-12-20 12:53:43 UTC
I think this is a dup. re-assigning for evaluation. Thanks

*** This bug has been marked as a duplicate of bug 220239 ***