OK I've been thinking that if I was to write this plugin this would be the way to go (thinking aloud here, please tell me if I'm barking up the wrong tree)...
1. When the plugin is loaded (and indeed a project created or loaded) a virtual folder called Tests is added (if it doesn't exist)
2. Adding a test creates a new build target with a single file (the test source). The test source is added to the virtual folder
3. Removing a test source will remove its associated build target, likewise, removing the build target removes the source file
4. There will be a virtual build target called something like "All Tests", which contains all the test build targets
I might have misunderstood how, build targets and virtual folders work. I haven't thought about how the output of the test runs will work, but just getting this bit working would make my life easier
Now... my questions:
1. Can I alter the context menu that appears when right clicking the virtual folder, or sources within the virtual folder using the SDK?
2. Is there anyway to add a new build target type? (it would help to differentiate what is a test build target, and what isn't)
P.S Killerbot: Thanks I'll give that a go later