Re: [Archivesspace_Users_Group] Automated Tests for Plugins?

2020-02-25 Thread James Bullen

Hi,

You can put backend tests in plugins/your_plugin/backend/spec

Any files in there called *_spec.rb will be run on build/run backend:test


Cheers,
James



> On Feb 26, 2020, at 8:26 AM, Alexander Duryee  
> wrote:
> 
> Christina,
> 
> I'm unaware of any way to implement plugin tests into ASpace's existing test 
> infrastructure.  What we did was write RSpec tests outside of the ASpace 
> release, which start the application (with our plugins), populate it with 
> data via the API, and check the outputs of common tasks against fixtures.  
> There's probably a better way of doing this (e.g. packaging the tests in the 
> plugin directory, and having RSpec pull them out, instead of having them all 
> in a big spec directory), but so far this has worked for us.
> 
> Thanks,
> --Alex
> 
> On Tue, Feb 25, 2020 at 1:56 PM Cortland, Christina Rosalie 
> mailto:crosa...@live.unc.edu>> wrote:
> Hi all,
> 
> We wanted to explore adding automated tests for our locally developed plugins 
> and were curious how other institutions approached this. I know ArchivesSpace 
> has its own test suite that folks who develop on ArchivesSpace can use, but 
> how do institutions who develop their own plugins test their custom 
> functionality, especially when upgrading to a new ASpace release?
> 
> Thanks,
> 
> Christina Cortland
> Software Development
> UNC-Chapel Hill Libraries
> Pronouns: she/her
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 
> 
> 
> -- 
> Alexander Duryee
> Metadata Archivist
> New York Public Library
> (917)-229-9590
> alexanderdur...@nypl.org 
> !DSPAM:5e559112206501143616535! 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
> 
> 
> !DSPAM:5e559112206501143616535!

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Automated Tests for Plugins?

2020-02-25 Thread Alexander Duryee
Christina,

I'm unaware of any way to implement plugin tests into ASpace's existing
test infrastructure.  What we did was write RSpec tests outside of the
ASpace release, which start the application (with our plugins), populate it
with data via the API, and check the outputs of common tasks against
fixtures.  There's probably a better way of doing this (e.g. packaging the
tests in the plugin directory, and having RSpec pull them out, instead of
having them all in a big spec directory), but so far this has worked for us.

Thanks,
--Alex

On Tue, Feb 25, 2020 at 1:56 PM Cortland, Christina Rosalie <
crosa...@live.unc.edu> wrote:

> Hi all,
>
> We wanted to explore adding automated tests for our locally developed
> plugins and were curious how other institutions approached this. I know
> ArchivesSpace has its own test suite that folks who develop on
> ArchivesSpace can use, but how do institutions who develop their own
> plugins test their custom functionality, especially when upgrading to a new
> ASpace release?
>
> Thanks,
>
> Christina Cortland
> Software Development
>
> UNC-Chapel Hill Libraries
>
> Pronouns: she/her
>
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>


-- 
Alexander Duryee
Metadata Archivist
New York Public Library
(917)-229-9590
alexanderdur...@nypl.org
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Automated Tests for Plugins?

2020-02-25 Thread Cortland, Christina Rosalie
Hi all,

We wanted to explore adding automated tests for our locally developed plugins 
and were curious how other institutions approached this. I know ArchivesSpace 
has its own test suite that folks who develop on ArchivesSpace can use, but how 
do institutions who develop their own plugins test their custom functionality, 
especially when upgrading to a new ASpace release?

Thanks,


Christina Cortland
Software Development

UNC-Chapel Hill Libraries

Pronouns: she/her
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group