massiveinteractive/MassiveUnit — Issue #8: Test runner not respecting targets in edited test.hxml file
Author: mikestead
Created: 2011-11-02 22:54:53+00:00
State: open

**Description:**
If a target is removed from test.hxml after it has been run, and then is run again, the target will still be picked up.

**Steps to reproduce:**
1) Create a test.hxml with targets js,as2,as3,neko
2) Run

> munit test

3) Remove one of the targets from test.hxml
4) Run

> munit test

**Actual Results:**

The removed target is still run.

**Expected Results:**

Only the targets described in test.hxml should be run.

**Workaround (if any):**

If you explicitly state the targets you want to test then this is not an issue. e.g.

> munit test -as3 -as2

**Additional Notes (if any):**
Looking at the code it appears than when no target is specified all targets are added and then not normalized when targets are read again from the hxml file. It could be the runner is just running the old test file from the last run.