Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Association of non-code (and other undetected dependency) files with tests
jeremygray
#1 Posted : Thursday, April 12, 2012 6:23:44 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/20/2011(UTC)
Posts: 32
Location: Vancouver, BC, Canada

Thanks: 1 times
Was thanked: 3 time(s) in 3 post(s)
It would be very useful if one could associate with a given test (or fixture or what have you) one or more files (perhaps via a test or fixture attribute including the dependency's relative path or somesuch) for use when NCrunch cannot be expected to detect the dependency between test and file. The modification of such a file could then trigger the associated test(s), particularly when running in incremental mode but I suppose also for use in prioritization when in the normal automatic mode.

As but one example, this would be especially handy for use with tests where an external file holds the expected results of a test, where I would like to start a given TDD cycle by making a modification to the external file, watch the test go red, modify the code to produce the newly-desired results, and finally watch the test go green, all without pinning tests and running them manually.
Remco
#2 Posted : Friday, April 13, 2012 3:16:54 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks for the suggestion. I do have plans here, though these were more of the automated variety (i.e. profiling a test to identify its file dependencies). Right now, as long as NCrunch is aware of a file dependency, it will always rerun tests whenever the file is changed.. However, it doesn't know enough about the association to be able to perform smart prioritisation - so definitely there is work to be done here.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.022 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download