Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work In-Progress: Public UI refactor & tests #1169

Merged
merged 7 commits into from Mar 27, 2018

Conversation

cfitz
Copy link
Member

@cfitz cfitz commented Mar 22, 2018

This is just the start of trying to add some test coverage to the Public UI.
It's a work in progress and this PR is just to provide a reference.

Adds a public:test ( and public:coverage ) that starts backend and solr then runs the rspec suite.

Any thoughts/suggestions/help is much appreciated.

This adds the baseline for adding spec tests to the public UI. Adds a
public:test and public:coverage ant task. Adds a spec_helper.rb and a
basic WelcomeController test. Oh and adds the rails-rspec and simplecov
gems.
This strips down the defined routes in the public UI in an attempt to
figure out what's actually being used ( and needs testing ) and what's
not ( and needs removing ). First pass is to remove most the POST
definitions which seem redundant to the GET definitions.
This is a start to adding specs to the public UI by adding a controller
spec for the AccessionsController.
@lmcglohon
Copy link
Contributor

@cfitz Looks like a great start! Keep going!

@lmcglohon
Copy link
Contributor

@cfitz I know this is a work in progress but I would like to merge it to the master branch so we can continue to build the PUI test corpus. Please let me know if that is OK with you.

Move the pry-* gems to only be in the dev and test groups of the
frontend.
@cfitz
Copy link
Member Author

cfitz commented Mar 27, 2018

@lmcglohon sure, if it looks good to you. I did notice one thing and moved the pry-* gems in the frontend into the dev/test groups.

…rollers/welcome_controller_spec.rb

@cfitz since frontend is a rails app, the welcome_controller_spec.rb should be in the spec/controllers directory.
@lmcglohon lmcglohon merged commit de9e51d into archivesspace:master Mar 27, 2018
@cdibella cdibella added the community code contributed by community members not on or contracted by the ArchivesSpace program team label Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community code contributed by community members not on or contracted by the ArchivesSpace program team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants