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'm writing a new adapter and I don't understand how filter_dir is supposed to work. It accepts three arguments: name, rel_path and root. The root parameter is clear: it's the absolute path to the result of calling the adapter's root function; normally the root of the project.
What about the other two? Supposed I have a Lua project that uses busted, then I have a .busted file at the top of the project directory. This will be my root. Now supposed I want to split my tests into unit tests and integration tests. The .busted file would look like this:
This means any directory under and including test/unit and test/integration is a test directory, but a directory like test/data or lua is not. Suppose I wanted to filter test/unit/herp/derp, what would be the name and what would be the rel_path? What would be the name and rel_path of test alone? What about other directories like lua or doc?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm writing a new adapter and I don't understand how
filter_dir
is supposed to work. It accepts three arguments:name
,rel_path
androot
. Theroot
parameter is clear: it's the absolute path to the result of calling the adapter'sroot
function; normally the root of the project.What about the other two? Supposed I have a Lua project that uses busted, then I have a
.busted
file at the top of the project directory. This will be my root. Now supposed I want to split my tests into unit tests and integration tests. The.busted
file would look like this:This means any directory under and including
test/unit
andtest/integration
is a test directory, but a directory liketest/data
orlua
is not. Suppose I wanted to filtertest/unit/herp/derp
, what would be thename
and what would be therel_path
? What would be thename
andrel_path
oftest
alone? What about other directories likelua
ordoc
?Beta Was this translation helpful? Give feedback.
All reactions