You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice to have shortcuts for defining executables and tests (and probably benchmarks too). Pretty much every package I define with executables and tests looks like this:
That is, I have a single executable with the same name as the package and a single test suite with the name "test". I always wish it could be shortened to this:
Hi! Sorry for the late reply. I'm on the fence with this one. I see how this is convenient but there are also costs / downsides:
more complex user documentation
what happens if both executable and executables is specified?
code complexity
That said, I see the biggest benefit for executable, as here we actually have duplicated information that we would like to DRY up (package name and executable name are the same, but we specify it twice).
For tests and benchmarks the benefit is less clear to me, as I see it we would mainly save one line in the package description.
Given this, I would be interested to see an implementation for executable first, before making a final call.
Activity
sol commentedon Mar 20, 2017
Hi! Sorry for the late reply. I'm on the fence with this one. I see how this is convenient but there are also costs / downsides:
executableandexecutablesis specified?That said, I see the biggest benefit for
executable, as here we actually have duplicated information that we would like to DRY up (package name and executable name are the same, but we specify it twice).For
testsandbenchmarksthe benefit is less clear to me, as I see it we would mainly save one line in the package description.Given this, I would be interested to see an implementation for
executablefirst, before making a final call.Merge branch 'master' into solgh-161-executable
Merge remote-tracking branch 'upstream/master' into solgh-161-executable
tfausak commentedon Jun 7, 2017
Fixed by f405602 and fda6b8b. See also #177 and #178.