<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div>Hi Esha,<div class=""><br class=""></div><div class="">You can say something like this:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">build/run backend:test -Dexample="User model can yield a list of all permissions”</div></blockquote><div class=""><br class=""></div><div class="">To run a single test, or just “User model” to run all of the user model tests. It actually just does a match, so you could say:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">build/run backend:test -Dexample="permissions”</div></div></blockquote><div class=""><br class=""></div><div class="">And it would run any test it finds with “permissions” its description.</div><div class=""><br class=""></div><div class="">A test’s full description is a concat of the ‘describe' blocks and ‘it' block it is contained in, so in the top example, it’s spec looks like this:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">describe 'User model' do</div><div class="">  …</div><div class="">  it "can yield a list of all permissions" do</div><div class="">    …</div><div class="">  end</div><div class="">  …</div><div class="">end</div></blockquote><div class=""><br class=""></div><div class="">There is also a way to run only a specific _spec.rb file, but I can’t remember what it is. ;)</div><div class=""><br class=""></div><div class="">Hope that helps.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">James</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 25, 2016, at 6:57 AM, Esha Datta <<a href="mailto:esha@nyu.edu" class="">esha@nyu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">Thanks to all of those who have helped me so far along the road to plugin development. The time now has come to write tests for the plugin. I noticed that in the dev instance I can specify which part of the application to test, for example: the backend, frontend, common, or all. Is there a way to run just one test or one suite of tests from the plugin? I'd like to have both options if possible. That way, when I'm checking on the tests, I don't have to wait for the backend tests to run every time. Thanks in advance for your help!</div><div class=""><br class=""></div><div class="">In MRI rails projects, I've managed to just do rspec spec/dir/whatever_suite_of_tests and if I want to specify a line or something:  rspec spec/dir/whatever_suite_of_tests:line number, can I try something like this in archivesspace?</div><div class=""><br class=""></div><div class="">I tried reading through the build.xml, specifically, the backend:test part but I wasn't really getting how to specify a plugin test...I see that I runs through all the backend tests.</div><div class=""><br class=""></div><div class="">Thanks.</div><div class=""><br class=""></div><div class="">Esha</div><div class=""><br class=""></div><div class="">Esha Datta</div><div class="">NYU Libraries</div></div>


!DSPAM:56f446ce244601971738366!
_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""><br class=""><br class="">!DSPAM:56f446ce244601971738366!<br class=""></div></blockquote></div><br class=""></div></body></html>