wwag110465 / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

dry run doesn't filter tests #397

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create test/test.js file with content:

TestCase("calculator", {
    "test add":function () {
        assertEquals(2, 1 + 1);
    },
    "test multiply":function () {
        assertEquals(4, 2 * 2);
    }
});

2. Create test/jsTestDriver.conf file with content:

server: http://localhost:9876
test:
 - test.js

3. Run server:
$java -jar /path/to/JsTestDriver-1.3.4.b.jar --port 9876 

4. capture a browser

5. run tests with dryRunFor flag:
$ java -jar /path/to/JsTestDriver-1.3.4.b.jar --config test/jsTestDriver.conf 
--dryRunFor "calculator.test add"
What is the expected output? What do you see instead?

Expected output:
=====
setting runnermode QUIET
Firefox 14.0.1: 1 tests [
calculator (/test/test.js)
    test add]
=====

Instead I see:
=====
setting runnermode QUIET
Firefox 14.0.1: 1 tests [
calculator (/test/test.js)
    test add
    test multiply]
=====

What version of the product are you using? On what operating system?

java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b04)
Java HotSpot(TM) Server VM (build 20.8-b03, mixed mode)

JsTestDriver-1.3.4.b

Please provide any additional information below.

Running tests with "--tests <requested tests>" flag reports only requested 
tests as expected.

Original issue reported on code.google.com by Sergey.S...@gmail.com on 31 Jul 2012 at 9:47