Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1472

Closed
Open
Created Sep 15, 2012 by Administrator@rootOwner

Tests fail locally (seed problem?)

Created by: PragTob

Hi everyone,

I try running tests the following way:

tobi@big-one ~/github/gitlabhq $ rake db:setup RAILS_ENV=test
gitlabhq_test already exists
(...)
tobi@big-one ~/github/gitlabhq $ rake db:seed_fu RAILS_ENV=test

== Seed from /home/tobi/github/gitlabhq/db/fixtures/test/001_repo.rb
Unpacking seed repository... done.
tobi@big-one ~/github/gitlabhq $ bundle exec rake gitlab:test
(...)
Error summary:
  Failures (2)
    Project Browse commits :: I browse commit from list :: Then I see commit info
    Project Browse commits :: I compare refs :: And I see compared refs

The concrete test failures are:

 ✘  Then I see commit info           # features/steps/project/project_browse_commits.rb:31

        expected there to be content "notes controller refactored" in (...)

and

✘  And I see compared refs                   # features/steps/project/project_browse_commits.rb:42

        expected there to be content "Commits (27)" in (...)

To me it looks like the seeds haven't been properly applied... but I've no idea right now how to fix it. Maybe this is some sort of commonly known problem? Help would be greatly appreciated.

Ah yeah, I'm using mysql as the database, with sqlite I had some other weird errors like rollback not possible or something...

Thanks + cheers, Tobi

Assignee
Assign to
Time tracking