Adding support for resource mappings

17 views
Skip to first unread message

Daniel Beland

unread,
Feb 26, 2016, 11:08:30 AM2/26/16
to infinitest-dev


Hi,



I'd like to add a resource mapping feature to infinitest so a modification of a resource file can trigger the test executions.
My immediate goal is to support BDD, to run the tests when I modify my feature file.


I've started to work on this and I was able to make it "work" with a bit of hard-coded logic, mainly to trigger a launch from the eclipse plugin when a ".feature" file is modified and in infinitest-lib to index ".feature" files along with the classes.

Then a new resource filter is used to add tests to be run, (before the TestFilter removes what is filtered out).


I see that adding support for resources would need some significant modifications of the current concepts, so I have 2 questions for the devs:

1 - Is it ok to index all the files in the classpath directories (typically target/classes and target/test-classes for a maven project), currently only classes are indexed and the rest is ignored?

2 - Is it ok for the eclipse plugin to trigger a launch on any file modification (any resource could trigger a unit test)? Alternatively, is it ok for the eclipse plugin to read a project configuration file to know which resource files can trigger a launch?


I haven't looked at the intellij plugin yet, but I suppose it would require the same kind of modifications as the eclipse plugin.



Thanks,
Daniel





Reply all
Reply to author
Forward
0 new messages